The blue coordinate (component) of this color. The value is clamped to the range [0,1].
The blue coordinate (component) of this color. The value is clamped to the range [0,1].
The green coordinate (component) of this color. The value is clamped to the range [0,1].
The green coordinate (component) of this color. The value is clamped to the range [0,1].
Computes the luminance of this color.
The red coordinate (component) of this color. The value is clamped to the range [0,1].
The red coordinate (component) of this color. The value is clamped to the range [0,1].
Returns a color in which any rgb component whose absolute value is less than pow(10, -n) times the absolute value of the largest coordinate is zero.
The exponent used to determine which components are set to zero.
approx(this)
a mutable instance of this color.
Copies the specified color into this Color instance.
The color to be copied.
Linearly interpolates from this color to the specified color.
The color returned when α = 1.
The parameter that determines the composition of the color.
this + (target - this) * α
A string representation of this color.
The color to be copied.
A mutable copy of the specified color.
Converts an angle, radius, height to a color on a color wheel.
Constructs a new mutable instance of Color from the rgb components. The components are clamped to the range [0, 1].
The red component.
The green component.
The blue component.
Creates a color in which the red, green, and blue properties lie in the range [0, 1].
Generated using TypeDoc
A mutable type representing a color through its RGB components.