Skip to content

getHSBColor()

Create a Color from HSB (hue, saturation, brightness) values.

Color.getHSBColor(hue, saturation, brightness)

Color.getHSBColor is a static utility. Call it on the class itself, for example Color.getHSBColor().

Parameters

Color.getHSBColor(hue, saturation, brightness)
Parameter Type Default Description
hue float required The hue, from 0.0 to 1.0.
saturation float required The saturation, from 0.0 to 1.0.
brightness float required The brightness, from 0.0 to 1.0.

Returns

return hsbColor

Value Type Description
hsbColor Color The matching color.