Creates a new instance of the Color class.
The red component of the RGB color. Defaults to 255.
The green component of the RGB color. Defaults to 255.
The blue component of the RGB color. Defaults to 255.
Optional callback function to be called when the color changes. Defaults to undefined.
Returns the hexadecimal representation of the RGB color.
The hexadecimal color value.
Returns an array containing the RGB values of the color.
An array of numbers representing the RGB values in the format [r, g, b].
Returns the normalized RGB values as an array.
An array containing the normalized RGB values.
Sets the color of the object using a hexadecimal color code.
The hexadecimal color code to set the color with.
Sets the color of the object based on the provided RGB values.
The red value in the range of 0-255.
The green value in the range of 0-255.
The blue value in the range of 0-255.
Represents an RGB color.