Gjsify LogoGjsify Logo

Hierarchy

  • ColorRGB

Index

Constructors

Properties

B: number
G: number
R: number
name: string

Methods

  • free(): void
  • from_wavelength(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

    • new_length: number

      the target length of the return array

    Returns ColorRGB[]

  • array_is_monotonic(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