Name | ColorTag |
Prefix | [email protected] |
Base Type | ElementTag |
Identity Format | The identity format for colors is <red>,<green>,<blue> or <red>,<green>,<blue>,<alpha> or the name of a color.
When using the numeric form, the number must be between 0 and 255, where 0 is least bright and 255 is most bright. For example, '[email protected],64,128' or '[email protected],0,0,128' or '[email protected]'. |
Description | A ColorTag represents an RGBA color code.
Note that a ColorTag is NOT a base dye color (used by wool, etc). That is handled by a separate naming system. Constructing a ColorTag also accepts 'random' to pick a random RGB color, or 'transparent' to return 0,0,0,0 or RGB hex code like '#FF00FF', or RGBA hex codes like '#FF00FF80', or valid minecraft chat color codes (hex or historical codes). A list of accepted color names can be found at util.color_names. Red/green/blue/alpha values are each from 0 to 255. |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ColorTag.java#L20 |