fromHsv

@NotNull
open fun fromHsv(hue: Float, saturation: Float, value: Float): @NotNull Color

Creates a new colour from the given hue, saturation, and value components.

Return

the new colour

Parameters

hue

the hue, between 0 and 1

saturation

the saturation, between 0 and 1

value

the value, between 0 and 1


@NotNull
open fun fromHsv(@NotNull hsv: @NotNull HSVLike): @NotNull Color

Creates a new colour from the given hsv colour.

Return

the new colour

Parameters

hsv

the hsv colour