Mention support for short RGB/RGBA colors in BBCode in RichTextLabel

This commit is contained in:
Hugo Locurcio
2021-10-15 15:36:59 +02:00
parent cd510f8221
commit 59fcf49b7e

View File

@@ -118,9 +118,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.
Short RGBA color codes such as ``#86f2`` (equivalent to ``#8866ff22``) are also supported.
.. _doc_bbcode_in_richtextlabel_handling_url_tag_clicks: