Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

A color.

Hierarchy

  • Color

Index

Constructors

constructor

  • new Color(r: number, g: number, b: number): Color
  • Initializes a new instance of the fm.icelink.color class.

    Parameters

    • r: number

      The red value (0-255).

    • g: number

      The green value (0-255).

    • b: number

      The blue value (0-255).

    Returns Color

Properties

Private _b

_b: number
internal

Private _g

_g: number
internal

Private _r

_r: number
internal

Methods

getB

  • getB(): number
  • Gets the blue value (0-255).

    Returns number

getG

  • getG(): number
  • Gets the green value (0-255).

    Returns number

getR

  • getR(): number
  • Gets the red value (0-255).

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

Private setB

  • setB(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

Private setG

  • setG(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

Private setR

  • setR(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

Static fromHsb

  • fromHsb(hue: number, saturation: number, brightness: number): Color
  • Creates a fm.icelink.color using hue, saturation, and brightness.

    Parameters

    • hue: number

      The hue value (0-359).

    • saturation: number

      The saturation value (0.0-1.0).

    • brightness: number

      The brightness value (0.0-1.0).

    Returns Color

Static getBlack

  • getBlack(): Color
  • Gets a black color.

    Returns Color

Static getBlue

  • getBlue(): Color
  • Gets a blue color.

    Returns Color

Static getCyan

  • getCyan(): Color
  • Gets a cyan color.

    Returns Color

Static getDarkBlue

  • getDarkBlue(): Color
  • Gets a dark-blue color.

    Returns Color

Static getDarkGreen

  • getDarkGreen(): Color
  • Gets a dark-green color.

    Returns Color

Static getDarkRed

  • getDarkRed(): Color
  • Gets a dark-red color.

    Returns Color

Static getGray

  • getGray(): Color
  • Gets a gray color.

    Returns Color

Static getGreen

  • getGreen(): Color
  • Gets a green color.

    Returns Color

Static getMagenta

  • getMagenta(): Color
  • Gets a magenta color.

    Returns Color

Static getOlive

  • getOlive(): Color
  • Gets an olive color.

    Returns Color

Static getPurple

  • getPurple(): Color
  • Gets a purple color.

    Returns Color

Static getRed

  • getRed(): Color
  • Gets a red color.

    Returns Color

Static getTeal

  • getTeal(): Color
  • Gets a teal color.

    Returns Color

Static getWhite

  • getWhite(): Color
  • Gets a white color.

    Returns Color

Static getYellow

  • getYellow(): Color
  • Gets a yellow color.

    Returns Color