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¶
Available APIs¶
- colormap.builtin selects a named built-in colormap.
- colormap.viridis, colormap.turbo, and related shortcuts create common built-ins.
- colormap.fromStops and colormap.fromPalette create custom colormaps.
- colormap#sampleCPU samples a returned colormap when CPU data is available.