fromHsl

fun fromHsl(hue: Double? = definedExternally, saturation: Double? = definedExternally, lightness: Double? = definedExternally, alpha: Double? = definedExternally, result: Color? = definedExternally): Color(source)

Creates a Color instance from hue, saturation, and lightness.

Return

The color object.

Parameters

hue

The hue angle 0...1 Default value - 0

saturation

The saturation value 0...1 Default value - 0

lightness

The lightness value 0...1 Default value - 0

alpha

The alpha component 0...1 Default value - 1.0

result

The object to store the result in, if undefined a new instance will be created.

See also