@mesmotronic/three-retropass
Version:
RetroPass applies a retro aesthetic to your Three.js project, emulating the visual style of classic 8-bit and 16-bit games
12 lines (11 loc) • 488 B
TypeScript
import * as THREE from 'three';
import { ColorCount } from '../models/ColorCount';
/**
* Creates a 3D cube quantized colour palette the same or smaller than the
* specified size, by default padded with greyscale up to the size.
*/
export declare function createQuantizedColorPalette(size?: number, padded?: boolean): THREE.Color[];
/**
* Creates a color palette based on the specified color count
*/
export declare function createColorPalette(colorCount: ColorCount): THREE.Color[];