Explorar o código

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

Hugo Locurcio %!s(int64=3) %!d(string=hai) anos
pai
achega
59fcf49b7e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tutorials/gui/bbcode_in_richtextlabel.rst

+ 2 - 0
tutorials/gui/bbcode_in_richtextlabel.rst

@@ -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: