Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

indexToColor

indexToColor(index): number

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

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.

number

number