PPML

Pixel Place Map Loader

2022/04/22のページです。最新版はこちら

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyforks.org/scripts/443803/1042806/PPML.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Exnonull
バージョン
1.2
作成日
2022/04/22
更新日
2022/04/22
大きさ
4.8KB
ライセンス
MIT

to make this lib working require CWSS and WorkerTimer



Variable: PPML || window.PPML

PPML.ws // WebSocket
PPML.safeEmit(x,y,pixel) // undefined
PPML.emit(x,y,pixel) // undefined / false / true
PPML.map
{
    pixels, // Uint8[]
    colors, // Uint32[]
    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。