Skip to content

mixPixels beta ​

Function of @v12-engine/client/common

ts
export declare function mixPixels(first: Uint8Array, second: Uint8Array, mix: GroundMix, size?: number): Uint8Array;

Two grounds' pixels (RGBA, size across) mixed into one, as a new array: the second in patches of a noise that repeats across the picture as they do, so the mix repeats without a seam too