Skip to content

unpackRows beta ​

Function of @v12-engine/render

ts
export declare function unpackRows(copy: Uint8Array, width: number, height: number, row: number, swap: boolean, into: Uint8ClampedArray): Uint8ClampedArray;

The rows of a copy (row bytes each, the pixels first) as pixels one after the other, red first (swap: the copy's are blue first)