Lut.d.ts 719 B

1234567891011121314151617181920212223242526272829
  1. import {
  2. Color
  3. } from '../../../src/Three';
  4. export class Lut {
  5. constructor(colormap?: string, numberofcolors?: number);
  6. lut: Color[];
  7. map: object[];
  8. n: number;
  9. minV: number;
  10. maxV: number;
  11. set(value: Lut): this;
  12. setMin(min: number): this;
  13. setMax(max: number): this;
  14. setColorMap(colormap?: string, numberofcolors?: number): this;
  15. copy(lut: Lut): this;
  16. getColor(alpha: number): Color;
  17. addColorMap(colormapName: string, arrayOfColors: number[][]): void;
  18. createCanvas(): HTMLCanvasElement;
  19. updateCanvas(canvas: HTMLCanvasElement): HTMLCanvasElement;
  20. }
  21. export interface ColorMapKeywords {
  22. rainbow: number[][];
  23. cooltowarm: number[][];
  24. blackbody: number[][];
  25. grayscale: number[][];
  26. }