Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

Namespace for creating colors via RGB and HEX properties.

Note: RGB and HEX values can be retrieved from various color picking tools.

Hierarchy

  • Color

Index

Constructors

constructor

  • new Color(red: number, green: number, blue: number): Color
  • new Color(hex: string): Color
  • Parameters

    • red: number
    • green: number
    • blue: number

    Returns Color

  • Parameters

    • hex: string

    Returns Color

Properties

Private _typeTag0

_typeTag0: "Color"

blue

blue: number

green

green: number

red

red: number

Static black

black: Color

Static blue

blue: Color

Static cyan

cyan: Color

Static darkBlue

darkBlue: Color

Static darkGray

darkGray: Color

Static darkGreen

darkGreen: Color

Static darkRed

darkRed: Color

Static deepBlue

deepBlue: Color

Static deepRed

deepRed: Color

Static golden

golden: Color

Static gray

gray: Color

Static green

green: Color

Static lightBlue

lightBlue: Color

Static lightGray

lightGray: Color

Static lightGreen

lightGreen: Color

Static lightPink

lightPink: Color

Static orange

orange: Color

Static red

red: Color

Static skyBlue

skyBlue: Color

Static skyBlueLight

skyBlueLight: Color

Static veryDarkGreen

veryDarkGreen: Color

Static veryDarkRed

veryDarkRed: Color

Static veryLightGray

veryLightGray: Color

Static white

white: Color

Static yellow

yellow: Color

Methods

equals

  • equals(other: Color): boolean
  • Parameters

    Returns boolean

Static random

  • Returns Color

Generated using TypeDoc