PPT

Pixel Place Tools

Stan na 24-04-2022. Zobacz najnowsza wersja.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/443807/1043387/PPT.js

Autor
Exnonull
Wersja
1.5
Utworzono
22-04-2022
Zaktualizowano
24-04-2022
Rozmiar
4,21 KB
Licencja
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)