PrivatenumPrivatedimensionsPrivatepositionsPrivatecolorsPrivateradiiPrivatesharpnessSet the number of points
Set the number of dimensions
Add specific positions
Generate random positions
Add colors (random if not specified)
Optionalcolors: number[] | Float32Array<ArrayBufferLike>Set radii.
Accepts either:
number) — broadcast to every point, ORFloat32Array / number[] of length numPoints —
cloned into a fresh Float32Array so the builder owns its own
buffer (a later mutation by the caller cannot leak in).Mismatched-length arrays throw a clear error rather than silently truncating or zero-extending.
Add varying radii
Add sharpness values
Build the points data
Builder for points test data