ICM: Weather Window
Friday, March 20th, 20092
2
This time, when you enter your zip code – you get the temperature, weather description, city, corresponding poem, and a corresponding image that I randomly plucked from the web.
It really only works within Processing (for now), but you can get the source code.
Click image to see applet.
This is my take on Shiffman’s King Lear example. I use my own poem for the text. Click on the image to link to the working applet & source code.
Applets made for the ICM class during the Fall semester. Everything was done with Beta versions of Processing.
First “drawing”:

Source code:

Other shapes/colors:

Source code:
void setup() {
//size of window
size(800,800);
}
void draw() {
background(255);
stroke(222,50,150);
strokeWeight(2);
rect(0,0,200,200);
fill(255);
rect(100,100,200,200);
line(200,100,200,200);
line(100,200,200,200);
rect(100,100,400,400);
fill(200,23,134);
{
stroke(35,67,175);
rect(100,100,200,200);
line(200,100,200,200);
line(100,200,200,200);
line(200,0,300,100);
line(0,200,100,300);
line(0,0,100,100);
line(200,200,300,300);
stroke(25,250,10);
strokeWeight(4);
ellipseMode(CENTER);
ellipse(600,600,100,100);
ellipse(600,500,100,100);
//top circle
ellipse(600,400,100,100);
}
}