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¶
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¶
- createPointCloud#applyScaleStats
- createPointCloud#basePointSize
- createPointCloud#colormap
- createPointCloud#colormapStops
- createPointCloud#computeBoundsFromCPUData
- createPointCloud#destroy
- createPointCloud#dirtyUniforms
- createPointCloud#dropCPUData
- createPointCloud#getBounds
- createPointCloud#getColormapForBinding
- createPointCloud#getLocalBounds
- createPointCloud#getPointRecord