Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

indexToColor

indexToColor(index): number

Defined in: packages/sigma/src/utils/colors.ts:276

Encode a picking ID into a packed RGBA uint32. The result should be written into the Uint32Array view of the attribute buffer. It should never be assigned to a Float32Array slot, or JS may canonicalize NaN bit patterns.

Parameters

index

number

Returns

number