From 78fe1e13c2be8bfb67fcdfa42642c14dfcd3c2fe Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 13 Sep 2021 01:54:26 +0200 Subject: [PATCH] Update BBCode in RichTextLabel `[color]` for RGBA color change Color codes are now RGBA instead of ARGB in Godot 4.0. --- tutorials/ui/bbcode_in_richtextlabel.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tutorials/ui/bbcode_in_richtextlabel.rst b/tutorials/ui/bbcode_in_richtextlabel.rst index b7d656de2..11de5ad9a 100644 --- a/tutorials/ui/bbcode_in_richtextlabel.rst +++ b/tutorials/ui/bbcode_in_richtextlabel.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~