PPT

Pixel Place Tools

À partir de 2022-05-02. Voir la dernière version.

Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @require https://update.greasyfork.org/scripts/443807/1046406/PPT.js

Auteur
Exnonull
Version
2.5.1
Créer
2022-04-22
Mis à jour
2022-05-02
Taille
13,5 ko
Licence
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.innerSize
    PPT.speed

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