Color

open class Color(source)

Represents a color in RGBA space.

Online Documentation

Constructors

Link copied to clipboard
constructor(red: Double, green: Double, blue: Double, alpha: Double)

Creates a new color instance.

Properties

Link copied to clipboard

The alpha component of this color in the range [0-1].

Link copied to clipboard

The blue component of this color in the range [0-1].

Link copied to clipboard

The green component of this color in the range [0-1].

Link copied to clipboard
val red: Double

The red component of this color in the range [0-1].