Skip to content

Commit

Permalink
Merge pull request #5247 from Calinou/bbcode-in-richtextlabel-rgba-color
Browse files Browse the repository at this point in the history
Update BBCode in RichTextLabel `[color]` for RGBA color change
  • Loading branch information
mhilbrunner authored Sep 13, 2021
2 parents 4060179 + 78fe1e1 commit 6fe3279
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tutorials/ui/bbcode_in_richtextlabel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ Hexadecimal color codes
~~~~~~~~~~~~~~~~~~~~~~~

For opaque RGB colors, any valid 6-digit hexadecimal code is supported, e.g. ``[color=#ffffff]white[/color]``.
Short RGB color codes such as ``#6f2`` (equivalent to ``#66ff22``) are also supported.

For transparent RGB colors, any 8-digit hexadecimal code can be used, e.g. ``[color=#88ffffff]translucent white[/color]``.
In this case, note that the alpha channel is the **first** component of the color code, not the last one.
For transparent RGB colors, any RGBA 8-digit hexadecimal code can be used, e.g. ``[color=#ffffff88]translucent white[/color]``.
In this case, note that the alpha channel is the **last** component of the color code, not the first one.
Short RGBA color codes such as ``#6f28`` (equivalent to ``#66ff2288``) are also supported.

Image vertical offset
~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 6fe3279

Please sign in to comment.