PPT

Pixel Place Tools

As of 24.04.2022. See ბოლო ვერსია.

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/443807/1043526/PPT.js.

ავტორი
Exnonull
ვერსია
1.6
შექმნილია
22.04.2022
განახლებულია
24.04.2022
Size
4,57 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)