Color
Reference to a color.
Properties
opacity
- number, optional. The opacity to be applied to the color.
type
- string. "color"
value
- string. Hexadecimal representation of RGBA color value or a color reference.
Sample
Example of a using a hexadecimal color:
{
"type": "color",
"value": "#0e7a0d"
}
Example of using a color reference:
{
"type": "color",
"value": "colors/myColor"
}
Remarks
Colors specified as a hexadecimal value must follow the hex-color
CSS specification.
For example, this specification dictates that all of the following color representations would be equivalent:
- #0099ff
- #0099ffaa
- #09f
- #09fa
Colors specified as references must be prefixed with colors/
, followed by the name of the color defined in the color palette to be referenced.
Related Controls
Arcade Buttons
Button
Directional Pad
Joystick
Throttle
Touchpad