Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll 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