color.map.cividis¶
Summary¶
color.map.cividis maps ordered scalar values from dark blue to yellow. Its progression in lightness helps distinguish low and high values when red–green color differences are hard to see.
Syntax¶
Returns¶
Colormap - Shared 256-texel, linearly filtered map with CPU and GPU sampling. Equivalent to WasmGPU.color.map.builtin("cividis").
Example¶
import WasmGPU from "@zushah/wasmgpu";
const map = WasmGPU.color.map.cividis();
const highValue = map.sampleCPU(0.85); // Linear RGBA