Document the support for transparent RGB colors in BBCode

This commit is contained in:
Hugo Locurcio
2017-08-17 21:39:35 +02:00
parent 11fa7a2063
commit ada398ba5e

View File

@@ -76,5 +76,8 @@ List of valid color names for the [color=<name>] tag:
Hexadecimal color codes
~~~~~~~~~~~~~~~~~~~~~~~
Any valid 6-digit hexadecimal code is supported, e.g. ``[color=#ffffff]white[/color]``.
For opaque RGB colors, any valid 6-digit hexadecimal code is supported, e.g. ``[color=#ffffff]white[/color]``.
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.