PPML

Pixel Place Map Loader

As of 2022-04-22. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/443803/1042955/PPML.js

Author
Exnonull
Version
1.4
Created
2022-04-22
Updated
2022-04-22
Size
3.49 KB
License
MIT

Variable: PPML || window.PPML

PPML.map
{
    pixels, // Uint8[]
    colors, // Uint32[]
    width, height, // number
    find(pixel) // index of pixels
    get(x,y) // pixel
    set(x,y,pixel) // undefined
}

PPML.onload = function(map) {
   // ...
};