Skip to main content
Version: 2.9

Color

Index

Constructors

constructor

Methods

equals

  • equals(obj: any): boolean
  • Parameters

    • obj: any

    Returns boolean

getAlpha

  • getAlpha(): number
  • Returns number

getBlue

  • getBlue(): number
  • Returns number

getGreen

  • getGreen(): number
  • Returns number

getRed

  • getRed(): number
  • Returns number

toHexString

  • toHexString(): string
  • Returns string

toRGBString

  • toRGBString(): string
  • Returns string

staticcreate

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

    • r: number
    • g: number
    • b: number
    • optionala: number

    Returns Color