Skip to content

decodeAlphaPng

decodeAlphaPng(rgba, width, height): AlphaMap

Defined in: packages/three-flatland/src/events/resolveAlphaMap.ts:22

Build an AlphaMap from decoded RGBA pixels (alpha lives in R).

Uint8Array<ArrayBufferLike> | Uint8ClampedArray<ArrayBufferLike>

number

number

AlphaMap