Structure
Overview
TColor represents a color, using 4 stored properties - red, green, blue, and alpha. The expected value range for the color components is a floating point number in range 0.0 to 1.0. TColor provides a number of useful methods for working with a color.
Properties
Computed properties
Computed based on the values of red, green, and blue. A value in range 0.0 to 360.0.
Computed based on the values of red, green, and blue. A value in range 0.0 to 1.0.
Computed based on the values of red, green, and blue. A value in range 0.0 to 1.0.
Initializers
Methods
Return the brightness of this color - which is computed as the average of the color components. (red, green, and blue)
Return the lightness value of this color.
Return the "relative luminance" of this color.
Set the renderer current fill color to the object color.
Set the renderer current stroke color to the object color.
Related