PPT

Pixel Place Tools

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/443807/1042790/PPT.js

Author
Exnonull
Version
1.1
Created
2022-04-22
Updated
2022-04-22
Size
2.56 KB
License
MIT

use it with PPML



Variable: PPT || window.PPT

    PPT.zero // 0xCCCCCC, color of locked pixels
    PPT.palette // new Uint32Array(), all excluded pixels equals PPT.zero
    PPT.wheel // next pixel from palette
    PPT.getPixel(r, g, b) // closest pixel to current r,g,b value
    PPT.getPixelColor(color) // closes pixel to current 0xFFFFFF value