Sym3Color

Represents an RGBA color.

Constructor

constructor(r: number, g: number, b: number, a: number)

Constructs a new Sym3Color with the given component values. With 0.0 being no intensity, and 1.0 being full intensity.

Fields

  • R (number): The red component of this color.
  • G (number): The green component of this color.
  • B (number): The blue component of this color.
  • A (number): The transparency (alpha) component of this color. 0.0 being completely transparent, 1.0 being completely opaque.

Example

Construct a new Sym3Color representing half transparent bright red.

let c = new Sym3Color(1.0, 0.0, 0.0, 0.5);