Companion

Functions

Link copied to clipboard
operator fun invoke(degrees: Float): Hue

Creates a Hue from any angle in degrees, wrapping it into [0, 360).

Link copied to clipboard
fun random(random: Random = Random.Default): Hue

Returns a uniformly random hue. random is injectable for deterministic tests.