Gjsify LogoGjsify Logo

Hierarchy

  • ColorRGB

Index

Constructors

Properties

b: number
g: number
r: number
name: string

Methods

  • free(): void
  • fromWavelength(wavelength: number): void
  • Set an RGB color which is roughly representative to the wavelength.

    Parameters

    • wavelength: number

      the wavelength roughly between 380nm and 780nm

    Returns void

  • set(r: number, g: number, b: number): void
  • Initialises a color value.

    Parameters

    • r: number

      component value

    • g: number

      component value

    • b: number

      component value

    Returns void

  • Interpolate the RGB array to a different size. This uses the Akima interpolation algorithm unless the array would become non-monotonic, in which case it falls back to linear interpolation.

    Parameters

    • array: ColorRGB[]

      Input array

    • newLength: number

      the target length of the return array

    Returns ColorRGB[]

  • arrayIsMonotonic(array: ColorRGB[]): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method