Private _red
The color's red component. Ranges in value from 0-255.
Private _green
The color's green component. Ranges in value from 0-255.
Private _blue
The color's blue component. Ranges in value from 0-255.
Private _alpha
The color's alpha component. Ranges in value from 0-255.
A p5.js Color object matching the current red, green, blue, and alpha values.
Set the current color.
A p5.js Color object. The color's RGBA components will become the new values of red, green, blue, and alpha.
The current red component value (0-255).
Set the value of the red component.
The current green component value (0-255).
Set the value of the green component.
The current blue component value (0-255).
Set the value of the blue component.
The current alpha component value (0-255).
Set the value of the alpha component.
Static getHSLColor
Some number between 0 and 360.
Some number between 0 and 100.
Some number between 0 and 100.
Optional a: number
Some number between 0 and 1.
A p5.js Color object matching the color specified by the given hsla values.
Static
getHSLAColor
Some 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.
Private setSet the color values.
A p5.js Color object. The color's RGBA components will become the new values of red, green, blue, and alpha.
Color information and functionality. Colors are stored in RGBA format.