Color.getBrightness

Overview | Methods | Fields | This Package | All Packages

Color.getBrightness

Retrieves the HSB brightness for this color.

Syntax

public float getBrightness()

Return Value

Returns the color's brightness, where 0 represents black and 1 represents white.

See Also   getHue, getSaturation