RGBA

@Serializable
data class RGBA(val r: Int, val g: Int, val b: Int, val a: Double? = null)

A structure holding an RGBA color.

Constructors

Link copied to clipboard
constructor(r: Int, g: Int, b: Int, a: Double? = null)

Properties

Link copied to clipboard
val a: Double? = null

The alpha component, in the 0-1 range (default: 1).

Link copied to clipboard
val b: Int

The blue component, in the 0-255 range.

Link copied to clipboard
val g: Int

The green component, in the 0-255 range.

Link copied to clipboard
val r: Int

The red component, in the 0-255 range.