Greasy Fork is available in English.
Pixel Place Tools
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/443807/1044300/PPT.js
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.RGB2P(r, g, b) // closest pixel to current r,g,b value
PPT.CLR2P(color) // closes pixel to current 0xFFFFFF value
// variables needed to draw next primitives
PPT.timer
PPT.map
PPT.pixel
PPT.size
PPT.innerSize
PPT.speed
// primitives
PPT.square(x,y,callback)
PPT.ring(x,y,callback)
PPT.image(pixels, x,y,w,h, callback)