PPT

Pixel Place Tools

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Exnonull
バージョン
1.5
作成日
2022/04/22
更新日
2022/04/24
大きさ
4.21KB
ライセンス
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

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