Skip to content

color.map.magma

Summary

color.map.magma maps increasing values from near-black through purple and warm pink to a pale endpoint. It gives low scalar intensities a dark background with progressively brighter colors for higher values.

Syntax

WasmGPU.color.map.magma(): Colormap
const result = wgpu.color.map.magma();

Returns

Colormap - Shared 256-texel, linearly filtered map for CPU or GPU sampling. Equivalent to WasmGPU.color.map.builtin("magma").

See Also