JS on the Very Large LED Array.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
makefile

README.md

VLLA-JS

vlla-js js file

EXAMPLE

for(var y=0; y < 32; y++) {
    for(var x=0; x < 60; x++) {
        var c = (x ^ y) * 4 & 0xFF;
        palette(c, c, c);
        paint(x, y);
    }
}

refresh();

JS API

palette(r, g, b);   // change the color of the paint
paint(x, y);        // change the color of a pixel at (x, y)
refresh();          // make changes visible on the display

t();                // 32 bit integer that increases every frame