PPT

Pixel Place Tools

目前为 2022-04-24 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/443807/1043526/PPT.js

作者
Exnonull
版本
1.6
创建于
2022-04-22
更新于
2022-04-24
大小
4.6 KB
许可证
MIT

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.speed

    // primitives
    PPT.square(x,y,callback)
    PPT.image(pixels, x,y,w,h, callback)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址