Skip to content

Commit

Permalink
Add formats option for !color_animation (CodeCrafter47#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 authored Sep 8, 2022
1 parent fda2e0d commit 1c08387
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pages/Custom Placeholders.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ The following types of custom placeholders are available:
It has the following options:

* ##### `effect`

Can be one of `rainbow`, `uniformRainbow`, `random`, `wave`, `waveCenter` or `glitter`.

* ##### `colors`
Expand All @@ -268,12 +268,12 @@ The following types of custom placeholders are available:

Needs to be specified for `wave`, `waveCenter` and `glitter`, but not the others.

* ##### `effectColor`
* ##### `effectColor`

Highlight color used for the animation.
A color can be a legacy color code such as `&a` or an rgb color such as `#012345`.
Highlight color used for the animation.
A color can be a legacy color code such as `&a` or an rgb color such as `#012345`.

Needs to be specified for `wave`, `waveCenter` and `glitter`, but not the others.
Needs to be specified for `wave`, `waveCenter` and `glitter`, but not the others.

* ##### `distance`

Expand All @@ -282,6 +282,10 @@ The following types of custom placeholders are available:
* ##### `speed`

Determines how fast the colors move through the text. Can be zero or negative to inverse the direction.

* ##### `formats`

Sets formatting codes that should be applied to the color animation. You have to provide valid formatting codes such as `&l` for bold or `&o` for italic.

_Schema:_
```yaml
Expand All @@ -290,6 +294,7 @@ The following types of custom placeholders are available:
colors: [<color>, <color>, ..., <color>]
distance: <Number>
speed: <Number>
formats: <String>
```

_Example:_
Expand Down

0 comments on commit 1c08387

Please sign in to comment.