Tuesday, October 26, 2010
Monday, October 25, 2010
Time
AS3 Source Code:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
Saturday, October 23, 2010
Tuesday, October 12, 2010
Wednesday, October 6, 2010
Weather News App in Processing
//In this project I’m using a java library called Text to Speech in order to
//read the weather RSS Feed and also show the text on the screen. The weather
//information will be for Eugene, OR.
//I used Regex for parsing the html format of the feed and removing all the html
//tags and changing the abbreviations to the actual words (like SW to Southwest).
//I made the anchor animated by using the frameCount function but there was a problem
//with using TTS which pauses the animation while doing the text to speech function!
//**** THIS PROGRAM DOES NOT RUN IN THE BROWSERS AS AN APPLET, FOR AN UNKNOWN REASON!
//SO PLEASE DOWNLOAD THE WHOLE PROJECT’S ZIP FILE AND RUN IT IN PROCESSING.
Code:
Quiz 2 - Moving Ball ( Programming for Artists )
int mouseW = 80; // interger varible name = starting value
int mouseH = 80;
int Ypos= 1;
int flag=0;
void setup() { //function that is called one when the program starts
size(480, 480);
smooth();
//noStroke();\
background(100);
}
void draw() { //function that is continually called ==loops
//if statement if true executes code between {}
// fill(random(255), random(255), random(255));//sets fill color
if (flag==0) {
if (Ypos>=480) flag=1;
Ypos+=10;
background(100);
}
else {
if (Ypos<10) flag=0;
Ypos-=10;
}
//changes the height of the ellipse
ellipse(200, Ypos, 80, 80);
}
int mouseH = 80;
int Ypos= 1;
int flag=0;
void setup() { //function that is called one when the program starts
size(480, 480);
smooth();
//noStroke();\
background(100);
}
void draw() { //function that is continually called ==loops
//if statement if true executes code between {}
// fill(random(255), random(255), random(255));//sets fill color
if (flag==0) {
if (Ypos>=480) flag=1;
Ypos+=10;
background(100);
}
else {
if (Ypos<10) flag=0;
Ypos-=10;
}
//changes the height of the ellipse
ellipse(200, Ypos, 80, 80);
}
Monday, October 4, 2010
Sunday, October 3, 2010
Subscribe to:
Comments (Atom)


















































