RgbColor

value class RgbColor(val value: Int)(source)

A 24-bit color with eight bits each for red, green, and blue components.

See also

Constructors

Link copied to clipboard
constructor(value: Int)

Properties

Link copied to clipboard
val blue: Byte

The blue component of this color (0-255).

Link copied to clipboard
val green: Byte

The green component of this color (0-255).

Link copied to clipboard
val red: Byte

The red component of this color (0-255).

Link copied to clipboard
val value: Int

The 24-bit integer representation of this color (0x000000 to 0xFFFFFF).

Functions

Link copied to clipboard
open override fun toString(): String