mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
31 lines
719 B
TypeScript
31 lines
719 B
TypeScript
import {
|
|
Color
|
|
} from '../../../src/Three';
|
|
|
|
export class Lut {
|
|
|
|
constructor( colormap?: string, numberofcolors?: number );
|
|
lut: Color[];
|
|
map: object[];
|
|
n: number;
|
|
minV: number;
|
|
maxV: number;
|
|
|
|
set( value: Lut ): this;
|
|
setMin( min: number ): this;
|
|
setMax( max: number ): this;
|
|
setColorMap( colormap?: string, numberofcolors?: number ): this;
|
|
copy( lut: Lut ): this;
|
|
getColor( alpha: number ): Color;
|
|
addColorMap( colormapName: string, arrayOfColors: number[][] ): void;
|
|
createCanvas(): HTMLCanvasElement;
|
|
updateCanvas( canvas: HTMLCanvasElement ): HTMLCanvasElement;
|
|
|
|
}
|
|
|
|
export interface ColorMapKeywords {
|
|
rainbow: number[][];
|
|
cooltowarm: number[][];
|
|
blackbody: number[][];
|
|
grayscale: number[][];
|
|
}
|