PPML

Pixel Place Map Loader

2022-04-22 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

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.greasyforks.org/scripts/443803/1042749/PPML.js

लेखक
Exnonull
आवृत्ती
1.0
बनवली
2022-04-22
अपडेट केली
2022-04-22
आकार
4.5 KB
License
MIT

Variable: PPML || window.PPML

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

PPML.setHook({
    priority: 0,
    init(map) {
        // ...
    }
});
长期地址
遇到问题?请前往 GitHub 提 Issues。