class structure with red, green, blue values in 0-255 range Uses the color-string library for conversion from and to string representations of color.

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • rgbValue: number[]

      Array of three 0-255 integers for r,g,b value. Ex: [255.0,0] for red

    Returns Color

Properties

value: number[]

Returns

Array of 3 integers in range 0-255

Accessors

  • get CSS(): string
  • Returns string

    hex string (as for CSS ) representation of r,g,b components

  • get blue(): number
  • Returns number

    0 to 255 value of blue color component

  • get green(): number
  • Returns number

    0 to 255 value of green color component

  • get red(): number
  • Returns number

    0 to 255 value of red color component

Methods

  • Parameters

    • cssTerm: string

      hex representtion of color as used in CSS. Ex "#FF0000" as red

    Returns Color

    Color instance.