Py5Graphics.brightness()
Contents
Py5Graphics.brightness()#
Extracts the brightness value from a color.
Description#
Extracts the brightness value from a color.
This method is the same as brightness() but linked to a Py5Graphics
object. To see example code for how it can be used, see brightness().
Underlying Processing method: PGraphics.brightness
Signatures#
brightness(
rgb: int, # any value of the color datatype
/,
) -> float
Updated on September 01, 2022 14:08:27pm UTC