The red value of the color, from 0 to 1.
The green value of the color, from 0 to 1.
The blue value of the color, from 0 to 1.
The alpha value of the color, from 0 to 1, default to 1.
Get the alpha value.
Set the alpha value, emit the 'alphaChange' and 'change' events for the color.
The value, can only be form 0 up to 1.
Get the blue value.
Set the blue value, emit the 'blueChange' and 'change' events for the color.
The value, can only be form 0 up to 1.
Get the green value.
Set the green value, emit the 'greenChange' and 'change' events for the color.
The value, can only be form 0 up to 1.
Get the red value.
Set the red value, emit the 'redChange' and 'change' events for the color.
The value, can only be form 0 up to 1.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Inverts the color returning its negative forme.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Sets the values of the color.
The red value.
The green value.
The blue value.
The alpha value.
Transforms the color to its hexadecimal form.
Transforms the color to its stringed hexadecimal form.
Creates a color from a hexadecimal form.
The hexadecimal form of your color.
The alpha value of the color, defaults to 1.
Creates a color from a stringed hexadecimal form.
The stringed hexadecimal form of your color.
The alpha value of the color, defaults to 1.
Transforms a color to its hexadecimal form.
The color to get its hexadecimal form.
Transforms a color to its stringed hexadecimal form.
The color to get its stringed hexadecimal form.
Generated using TypeDoc
Creates a new color.
Values can only go up to 1.