Library: Color
Overview
Color
- desc: Color
Constructors
Functions
Create a Color object that can be used to manipulate colors programmatically.
parameters
color |
Set the color transparency
parameters
float | a | Transparency value, between 0.0 (fully transparent) and 1.0 (fully opaque). |
Lightens the color.
parameters
integer | level | Level to lighten the color with. |
Darkens the color.
parameters
integer | level | Level to darken the color with. |
Timeplot.Color.check()
Checks and validates if the hex values r, g and b are
between 0 and 255.
Timeplot.Color.toHexString()
Returns the hexadecimal representation of this color (without the alpha channel as hex colors don't support it)
Objects