kotlin-homie / org.homieiot.colors / RGB

RGB

data class RGB

An additive color model in which red, green and blue light are added together in various ways to reproduce a broad array of colors.

Constructors

<init>

RGB(triple: Triple<Int, Int, Int>)

Create a color model using a triple, the first value is red, the second is green and the third is blue

RGB(red: Int, green: Int, blue: Int)

Create a color model based on red, green and blue values

Properties

blue

val blue: Int

The amount of blue in the color model. Valid values are from 0 to 255.

green

val green: Int

The amount of green in the color model. Valid values are from 0 to 255.

red

val red: Int

The amount of red in the color model. Valid values are from 0 to 255.