Skip to content

DiffPixels

FieldTypeWhat it is
dataUint8ClampedArrayUint8ListRed, green, blue and alpha, a byte each, width * height * 4 long.
widthnumberint
heightnumberint

The same shape as ImageData, so what a canvas hands back can be passed straight in.

The same shape ui.Image.toByteData hands back in ui.ImageByteFormat.rawRgba, so a decoded picture reaches the engine without a copy of its own.

Released under the MIT License