Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

Hierarchy

  • Color

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Color(a?: number, r: number, g: number, b: number): Color
  • Parameters

    • Default value a: number = 255
    • r: number
    • g: number
    • b: number

    Returns Color

Properties

a

a: number

b

b: number

g

g: number

r

r: number

Static black

black: Color = new Color(255, 0, 0, 0)

Static empty

empty: Color = new Color(0, 0, 0, 0)

Static transparent

transparent: Color = new Color(0, 0, 0, 0)

Static white

white: Color = new Color(255, 255, 255, 255)

Static whiteSmoke

whiteSmoke: Color = new Color(255, 245, 245, 245)

Methods

Static fromArgb

  • fromArgb(a: number, r: number, g: number, b: number): Color

Generated using TypeDoc