Files
FreeJ/scripts/processing/basic/alphamask.pde
Jaromil ae7b1ad056 progresses on processing script
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
2010-02-12 18:36:54 +01:00

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);
}