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

colorToIndex

colorToIndex(r, g, b, a): number

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

Decode picking framebuffer bytes back to a picking ID. (0,0,0,0) -> 0.

Parameters

r

number

g

number

b

number

a

number

Returns

number