mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-06 13:09:15 +01:00
processing-js 0.4 has been merged in some relevant parts basic and topic scripts added for test color handling fixed, more scripts show up now
20 lines
307 B
Plaintext
20 lines
307 B
Plaintext
PImage img;
|
|
|
|
void setup()
|
|
{
|
|
size( 200, 200 );
|
|
img = createImage( 120, 120, RGB );
|
|
for(int i=0; i < img.pixels.length; i++) {
|
|
img.pixels[i] = color(0, 90, 102, i%img.width * 2);
|
|
}
|
|
}
|
|
|
|
void draw()
|
|
{
|
|
background(204);
|
|
image(img, 33, 33);
|
|
//image(img, mouseX-60, mouseY-60);
|
|
|
|
exit();
|
|
}
|