// This drawing tool allows you to create your own scenery of Japan
PImage b;
PImage s;
void setup() {
size(400, 400);
s= loadImage("sakura.png"); // image of the sakura
b= loadImage("S0035.jpg");
background(b);
}
void draw() {
if (mousePressed == true) { // Draw with sakura when the mouse is pressed
int ix= mouseX - s.width/2;
int iy= mouseY - s. height/2;
image(s, ix, iy);
} else { // When the mouse is not pressed, snow appears
noStroke();
fill(255, 255, 255, 5);
int ix= mouseX - s.width/2;
int iy= mouseY - s. height/2;
ellipse(ix, iy, 7, 7);
}
}
Charlene - E
on Wednesday, Oct 15, 2008 – 10:18 am
2 Comments
this is really cool, i like it a lot
this is cool. it’s so pretty!. i like the pink flowers and the snow flakes