color.palette.okabeito¶
Summary¶
color.palette.okabeito supplies eight swatches designed to distinguish categories across common forms of color-vision deficiency. Index zero is black. Use color.palette.swatch("okabeito", index) to assign one of its colors to a series or object.
Syntax¶
Returns¶
Colormap - Shared nearest-filtered map with eight texels in palette order. Equivalent to WasmGPU.color.palette.builtin("okabeito").
Example¶
import WasmGPU from "@zushah/wasmgpu";
const palette = WasmGPU.color.palette.okabeito();
const orange = palette.sampleCPU(1.5 / palette.width);