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

Properties

Methods

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

blue

blue: number

green

green: number

red

red: number

Methods

equals

  • equals(other: Color): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc