Pixel Place Tools
目前為
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/443807/1042881/PPT.js
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