brightness()

Color / Creating & Reading

Description

Extracts the brightness value from a color (HSB mode).

Syntax

float brightness(color c)

Parameters

NameTypeDescription
ccolorany color value

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...