Optionalcolor: Color | PaletteColorA p5.js Color or PaletteColor object.
If given a p5.js Color, the color's RGBA components
will become the values of red, green, blue, and alpha.
If given a PaletteColor, the color's HEX value will be
used to build the color.
The current alpha component value (0-255).
Set the value of the alpha component.
The current blue component value (0-255).
Set the value of the blue component.
IMPORTANT: This method will set _name to null.
A p5.js Color object matching the current red, green, blue, and alpha values.
Set the current color.
IMPORTANT: This method will set _name to null.
A p5.js Color object. The color's RGBA components will become the new values of red, green, blue, and alpha.
The current green component value (0-255).
Set the value of the green component.
IMPORTANT: This method will set _name to null.
The name of the color.
The current red component value (0-255).
Set the value of the red component.
IMPORTANT: This method will set _name to null.
StaticgetHSLAColorSome number between 0 and 360.
Some number between 0 and 100.
Some number between 0 and 100.
Some number between 0 and 1.
A p5.js Color object matching the color specified by the given hsla values.
StaticgetHSLColorSome number between 0 and 360.
Some number between 0 and 100.
Some number between 0 and 100.
Optionala: numberSome number between 0 and 1.
A p5.js Color object matching the color specified by the given hsla values.
Color information and functionality. Colors are stored in RGBA format.