Loading

Pbrightness

processing

Extracts the brightness value from a color.

Link to original Processing doc

Pbrightness is available since version 1.0.0.

See also

Signatures

Examples

100 100 '2D' PGraphics 0xffb3ace3 //light violet, opaque Pbrightness 255.0 / 100.0 * //returns hue value on a [0-100] scale