Optional color: 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.
Private _alphaThe color's alpha component. Ranges in value from 0-255.
Private _blueThe color's blue component. Ranges in value from 0-255.
Private _greenThe color's green component. Ranges in value from 0-255.
Private _nameThe color's name. Retrieved from a PaletteColor or the ColorNameManager.
Private _redThe color's red component. Ranges in value from 0-255.
The current alpha component value (0-255).
Set the value of the alpha component.
The current blue component value (0-255).
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).
The name of the color.
The current red component value (0-255).
Static getHSLAColorSome 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.
Static getHSLColorSome number between 0 and 360.
Some number between 0 and 100.
Some number between 0 and 100.
Optional a: numberSome number between 0 and 1.
A p5.js Color object matching the color specified by the given hsla values.
Private set
Color information and functionality. Colors are stored in RGBA format.