mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-05 12:39: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
18 lines
272 B
Plaintext
18 lines
272 B
Plaintext
PImage img;
|
|
PImage maskImg;
|
|
|
|
void setup()
|
|
{
|
|
size(200,200);
|
|
img = loadImage("data/test.jpg");
|
|
maskImg = loadImage("data/mask.jpg");
|
|
img.mask(maskImg);
|
|
}
|
|
|
|
void draw()
|
|
{
|
|
background((mouseX+mouseY)/1.5);
|
|
image(img, 50, 50);
|
|
image(img, mouseX-50, mouseY-50);
|
|
}
|