ChromaColour

data class ChromaColour(val hue: Float, val saturation: Float, val brightness: Float, val timeForFullRotationInMillis: Int, val alpha: Int)(source)

Constructors

Link copied to clipboard
constructor(hue: Float, saturation: Float, brightness: Float, timeForFullRotationInMillis: Int, alpha: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val alpha: Int

Alpha in a range from 0 to 255 (with 255 being fully opaque).

Link copied to clipboard

Brightness in a range from 0 to 1

Link copied to clipboard
val hue: Float

Hue in a range from 0 to 1. For a chroma colour this is added to the time as an offset.

Link copied to clipboard

Saturation in a range from 0 to 1

Link copied to clipboard

If set to 0, this indicates a static colour. If set to a value above 0, indicates the amount of milliseconds that pass until the same colour is met again. This value may be saved lossy.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Unlike getEffectiveColour, this offset does not change anything if not using an animated colour.

Link copied to clipboard

Unlike getEffectiveColourRGB, this offset does not change anything if not using an animated colour.

Link copied to clipboard