PPT

Pixel Place Tools

As of 02. 05. 2022. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/443807/1046399/PPT.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
Exnonull
Verzija
2.3.1
Napravljeno
22. 04. 2022
Ažurirano
02. 05. 2022
Size
11 КБ
Licenca
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)