Structural shape of an RGBA pixel source. Browser ImageData (and the
happy-dom equivalent used in tests) satisfy this contract directly.
Keeping the type structural means the Phaser layer can pass any source
that exposes RGBA pixels — e.g. an ImageData extracted from a
DynamicTexture — without core taking a DOM dependency.
Structural shape of an RGBA pixel source. Browser
ImageData(and the happy-dom equivalent used in tests) satisfy this contract directly. Keeping the type structural means the Phaser layer can pass any source that exposes RGBA pixels — e.g. anImageDataextracted from aDynamicTexture— without core taking a DOM dependency.