Color

Source: colors.ts


Constructor

new Color( r?: ColorConstructorArg, g?: number, b?: number, ): Color

Parameters

  • r (ColorConstructorArg, optional, default: 0) — Packed RGB color or color object; with multiple components, the red component from 0 to 1.
  • g (number, optional, default: 0) — Green component from 0 to 1 when RGB components are supplied.
  • b (number, optional, default: 0) — Blue component from 0 to 1 when RGB components are supplied.