Skip to content

Commit

Permalink
feat: document shadow color (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jan 9, 2025
1 parent 2b468de commit 12d9329
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions source/minimessage/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,33 @@ Examples
.. image:: /minimessage/images/color_verbose_2.png
:alt: The result of parsing ``<color:#FF5555>This is a <color:#55FF55>test!``, shown in-game in the Minecraft client's chat window

Shadow Color
************

Color the shadow of the next parts

Tag
* :mm:`<shadow:_hex_>`, for hex color
* :mm:`<shadow:_color_:[alpha_as_float]>`, for named colors with optional alpha
* :mm:`<!shadow>` as an alias to disable the shadow (equalivent to :mm:`<shadow:#00000000>`)

Check warning on line 93 in source/minimessage/format.rst

View workflow job for this annotation

GitHub Actions / check-spelling

equalivent: ["equivalent", "qualitative"]: as an alias to disable the shadow (equalivent to .
Arguments
* ``_hex_``, a hex color string with the format ``#RRGGBB`` or ``#RRGGBBAA``.
* ``_color_``, any minecraft named color constant
* ``[alpha_as_float]``, a float value between 0 and 1, representing the alpha value of the shadow. Optional, defaults to 0.25.
Examples
* :mm:`<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!`
* :mm:`<shadow:#FF5555>This is a <shadow:#55FF55>test!`
* :mm:`<shadow:#000000FF><b>Thicc`

.. image:: /minimessage/images/shadow_1.png
:alt: The result of parsing ``<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!``, shown in-game in the Minecraft client's chat window

.. image:: /minimessage/images/shadow_2.png
:alt: The result of parsing ``<shadow:#FF5555>This is a <shadow:#55FF55>test!``, shown in-game in the Minecraft client's chat window

.. image:: /minimessage/images/shadow_3.png
:alt: The result of parsing ``<shadow:#000000FF><b>Thicc``, shown in-game in the Minecraft client's chat window

Decoration
***********

Expand Down
Binary file added source/minimessage/images/shadow_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/shadow_2.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/shadow_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 12d9329

Please sign in to comment.