Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion source/minimessage/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,11 @@ Rainbow
Rainbow-colored text?!

Tag
:mm:`<rainbow:[!][phase]>`
:mm:`<rainbow:[!][phase]:[saturation]>`
Arguments
* phase, optional
* ``!``, literal value which reverses the rainbow, optional
* saturation, optional
Examples
* :mm:`<yellow>Woo: <rainbow>||||||||||||||||||||||||</rainbow>!`
* :mm:`<yellow>Woo: <rainbow:!>||||||||||||||||||||||||</rainbow>!`
Expand All @@ -270,6 +271,14 @@ Examples
.. image:: /minimessage/images/rainbow_1.png
:alt: The result of parsing all four examples in series, shown in-game in the Minecraft client's chat window

Saturation examples
* :mm:`<yellow>Woo: <rainbow:0:1.0>||||||||||||||||||||||||</rainbow>!`
* :mm:`<yellow>Woo: <rainbow::0.6>||||||||||||||||||||||||</rainbow>!`
* :mm:`<yellow>Woo: <rainbow::0.3>||||||||||||||||||||||||</rainbow>!`

.. image:: /minimessage/images/rainbow_2.png
:alt: The result of parsing a rainbow text with 1.0 saturation and two examples with lower saturation, shown in-game in the Minecraft client's chat window

Gradient
********

Expand Down
Binary file modified source/minimessage/images/rainbow_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/minimessage/images/rainbow_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.