Dougal - F

By Dougal Henken
/* The basic premise behind this alpahbet book was to create a counterpoint to a traditional alphabet book. Alphabet books are usually intended for small children and are as such very clean and sterile. I wanted to keep that feeling of sterility while making something a little more sinister. So I created the "Alphabet of Injury." The color scheme is a simple black and white, but the bold letters are meant to subtly reflect a number of medical accidents that can befall us through basic mouse interactivity. If one holds the the the key of a letter A through E and presses the left mouse button, a small animation takes place. Each letter does not stay on the screen as these injuries do not stay with us, but disappear over time. */ PImage a1; PImage a2; PImage a3; PImage a4; PImage a5; PImage a6; PImage b1; PImage b2; PImage c1; PImage c2; PImage d1; PImage e1; PImage e2; void setup(){ { size(400, 400); background(255); a1 = loadImage("a_1_2.png"); a2 = loadImage("a_2_2.png"); b1 = loadImage("b_1.png"); b2 = loadImage("b_2.png"); c1 = loadImage("c_1.png"); c2 = loadImage("c_2.png"); d1 = loadImage("d_1_2.png"); e1 = loadImage("e_1.png"); e2 = loadImage("e_2.png"); } } void draw(){ background(255); if(keyPressed == true) { switch(key) { case 'a': if (mousePressed == true){ image(a2, 132, 100); } else{ image(a1, 130, 100); } break; case 'b': if (mousePressed == true){ image(b2, -60, -60); } else { image(b1, 0, 0); } break; case 'c': image(c1, mouseX-20, 110); image(c2, -mouseX+240, 197); break; case 'd': if (mousePressed == true){ image(d1, 125, 125); } break; case 'e': if (mousePressed == true){ image(e2, 0, 80); } else { image(e1, 0, 92); } } } }

2 Comments

  1. Posted October 16, 2008 at 11:10 am | Permalink

    Good basic idea. It’s a little confusing that ‘C’ requires moving the mouse, but the others are a click. Either make them all different (then it becomes a bit of a game) or make them all the same.

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

    for some reason i cannot get a reaction out of pressing D

Post a Comment

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

*
*