Skip to content

createPointCloud#getColormapKey

Summary

createPointCloud#getColormapKey returns an opaque string identifying the selected colormap. Equal keys identify the same selection; do not parse or persist their format.

Syntax

PointCloud.getColormapKey(): string
const result = pointCloud.getColormapKey();

Parameters

This API does not take parameters.

Returns

string - String result produced by this operation.

Example

const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);

const pointCloud = wgpu.createPointCloud({ data: new Float32Array([0, 0, 0, 0.1, 1, 0, 0, 0.8]), scaleTransform: { mode: "linear", domainMin: 0, domainMax: 1 } });
const result = pointCloud.getColormapKey();
console.log(result);

See Also