PPT

Pixel Place Tools

Versión del día 23/4/2022. Echa un vistazo a la versión más reciente.

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @require https://update.greasyfork.org/scripts/443807/1043148/PPT.js

Autor
Exnonull
Versión
1.2.1
Creado
22/4/2022
Actualizado
23/4/2022
Tamaño
3,25 KB
Licencia
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.pixel
    PPT.size

    // primitives
    PPT.square(x,y,callback)