Skip to content

WasmGPU.colormap

Summary

WasmGPU.colormap is the colormap factory facade. It creates built-in or caller-defined color lookup tables for data-driven materials and scientific scene objects, with CPU sampling available when the created colormap retains a CPU lookup table.

Syntax

const colors = wgpu.colormap.viridis();

Available APIs

See Also