pl.wendigo.chrome.api.dom / RGBA

RGBA

data class RGBA (source)

A structure holding an RGBA color.

Link
DOM#RGBA type documentation.

Constructors

<init>

RGBA(r: Int, g: Int, b: Int, a: Double? = null)

A structure holding an RGBA color.

Properties

a

val a: Double?

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

b

val b: Int

The blue component, in the 0-255 range.

g

val g: Int

The green component, in the 0-255 range.

r

val r: Int

The red component, in the 0-255 range.