@pnext/three-loader
Version:
Potree loader for ThreeJS, converted and adapted to Typescript.
13 lines (11 loc) • 329 B
text/typescript
import { Color } from 'three';
import { IGradient } from '../types';
export const RAINBOW: IGradient = [
[0, new Color(0.278, 0, 0.714)],
[1 / 6, new Color(0, 0, 1)],
[2 / 6, new Color(0, 1, 1)],
[3 / 6, new Color(0, 1, 0)],
[4 / 6, new Color(1, 1, 0)],
[5 / 6, new Color(1, 0.64, 0)],
[1, new Color(1, 0, 0)],
];