Skip to content

PointCloud.colormapStops

Summary

PointCloud.colormapStops reads the current colormapStops value from this PointCloud instance. Use it to inspect runtime state without mutating resources.

Syntax

PointCloud.colormapStops: ReadonlyArray<Color4>
const value = pointCloud.colormapStops;

Parameters

This API does not take parameters.

Returns

ReadonlyArray<Color4> - Current accessor value exposed by the runtime object.

Type Details

Color4

type Color4 = [number, number, number, number];

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 value = pointCloud.colormapStops;
console.log(value);

See Also