Charlene - E

By Charlene
// 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); } }

2 Comments

  1. Jessica
    Posted October 15, 2008 at 9:08 pm | Permalink

    this is really cool, i like it a lot

  2. wangl
    Posted October 20, 2008 at 11:10 am | Permalink

    this is cool. it’s so pretty!. i like the pink flowers and the snow flakes

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*