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

  • 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

blue: number
green: number
red: number
black: Color
blue: Color
cyan: Color
darkBlue: Color
darkGray: Color
darkGreen: Color
darkRed: Color
deepBlue: Color
deepRed: Color
golden: Color
gray: Color
green: Color
lightBlue: Color
lightGray: Color
lightGreen: Color
lightPink: Color
orange: Color
red: Color
skyBlue: Color
skyBlueLight: Color
veryDarkGreen: Color
veryDarkRed: Color
veryLightGray: Color
white: Color
yellow: Color

Methods

  • equals(other: Color): boolean
  • Parameters

    Returns boolean

  • Returns Color