Represents a color in RGBA space.

Constructor

new(red:Float, green:Float, blue:Float, alpha:Float)

Creates a new color instance.

Parameters:

red

The red component.

green

The green component.

blue

The blue component.

alpha

The alpha component.

Variables

read onlyalpha:Float

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

read onlyblue:Float

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

read onlygreen:Float

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

read onlyred:Float

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