Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
Color.fromHSB
Creates a new Color object based on the specified hue, saturation, and brightness values.
Syntax
public static final Color fromHSB( floathue, floatsaturation, floatbrightness**)**
Parameters
hue
The hue of the color. This value is represented as an angle that extends from 0 to 360, where red is at 0. As the angle increases, the hue flows from red to yellow, green, cyan, blue, and magenta, and back to red.
saturation
The saturation level of the given hue. Zero represents the least saturated hue (gray), while one is the most saturated.
brightness
The overall brightness of the color value. Zero represents black and one represents white.
Return Value
Returns the new Color object.
See Also fromCMYK