Class rgb_color
Version added: before 9.5
The rgb_color class is a basic structure for storing a color value, including opacity/transparency.
If necessary, instances of this class can be created by:
- Local variable:
- Global (see Script Structure about conventions for naming globals):
If necessary, instances of this class can be created by:
- Local variable:
local rgbCol = LM.rgb_color:new_local()
- Global (see Script Structure about conventions for naming globals):
XX_rgbCol = LM.rgb_color:new()
Properties of rgb_color:
Name | Type | Description | Ver |
a | int | The alpha (or opacity) component of the color. Values can range from 0 to 255. An alpha of 0 is a totally transparent color, while a value of 255 indicates a totally opaque color. | < 9.5 |
b | int | The blue component of the color. Values can range from 0 to 255. | < 9.5 |
g | int | The green component of the color. Values can range from 0 to 255. | < 9.5 |
r | int | The red component of the color. Values can range from 0 to 255. | < 9.5 |