Class ColorOps
Version added: 11.0
Added in version 11
NOTE: All methods and properties of this class are static (which means they can be used without creating an instance of the class).
For example:
or
NOTE: All methods and properties of this class are static (which means they can be used without creating an instance of the class).
For example:
local rgbCol = LM.ColorOps:RgbColor(10, 20, 30, 40)
or
local rgbCol = LM.ColorOps.Red
Methods of ColorOps:
Name | Returns | Description | Ver |
BlendColors BlendColors(percent, color1, color2) | rgb_color | Static method. Added in version 11 | 11.0 |
Hsv2Rgb Hsv2Rgb(col) | rgb_color | Static method. Added in version 11 | 11.0 |
HsvColor HsvColor(h, s, v, a) | hsv_color | Static method. Added in version 11 | 11.0 |
InvertColor InvertColor(r, g, b, a) | rgb_color | Static method. Added in version 11 | 11.0 |
Rgb2Hsv Rgb2Hsv(col) | hsv_color | Static method. Added in version 11 | 11.0 |
RgbColor RgbColor(r, g, b, a) | rgb_color | Static method. Added in version 11 | 11.0 |
SameColor SameColor(lColor, rColor) | bool | Static method. Added in version 11 | 11.0 |
Properties of ColorOps:
Name | Type | Description | Ver |
Black | rgb_color | 11.0 | |
Blue | rgb_color | 11.0 | |
Clear | rgb_color | 11.0 | |
Cyan | rgb_color | 11.0 | |
Green | rgb_color | 11.0 | |
Magenta | rgb_color | 11.0 | |
Red | rgb_color | 11.0 | |
White | rgb_color | 11.0 | |
Yellow | rgb_color | 11.0 |