Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YColor

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

a

  • get a(): number
  • set a(value: number): any
  • Allows to get / set the Alpha component of a color.

    Returns number

  • Allows to get / set the Alpha component of a color.

    Parameters

    • value: number

    Returns any

b

  • get b(): number
  • set b(value: number): any
  • Allows to get / set the Blue component of a color.

    Returns number

  • Allows to get / set the Blue component of a color.

    Parameters

    • value: number

    Returns any

cloned

  • Returns a clone of the specified color.

    Returns YColor

g

  • get g(): number
  • set g(value: number): any
  • Allows to get / set the Green component of a color.

    Returns number

  • Allows to get / set the Green component of a color.

    Parameters

    • value: number

    Returns any

r

  • get r(): number
  • set r(value: number): any
  • Allows to get / set the Red component of a color.

    Returns number

  • Allows to get / set the Red component of a color.

    Parameters

    • value: number

    Returns any

Methods

Static create

  • create(r: number, g: number, b: number, a: number): YColor
  • Returns new color as defined by RGB values.

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns YColor

Static lerp

  • Linear interpolation between two colors by the interpolant.

    Parameters

    Returns YColor

Generated using TypeDoc