Here's an applet I generated from it in a few minutes work, starting with an example Eric posted on The WELL.
/// start
void setup() {
size(600,600);
}
void draw(){
background(255);
int left_x = 0;
int right_x = width;
int top_y = 0;
int bottom_y = height;
int light_green = #99FF99;
int light_blue = #66CCFF;
int light_yellow = #FFCC66;
int pale_red = #FF3366;
for (int n=0; n < 100; n++) {
int y_of_n = n * (bottom_y/100);
int x_of_n = n * (right_x/100);
stroke(pale_red);
line(left_x,y_of_n,mouseX,mouseY);
stroke(light_yellow);
line(right_x,y_of_n,mouseX,mouseY);
stroke(light_blue);
line(x_of_n,0,mouseX,mouseY);
stroke(light_green);
line(x_of_n,bottom_y,mouseX,mouseY);
}
}
/// end
Technorati Tags: graphics, programming
1 comment:
Hi,
You have a very cool blog here…loved the content.
U know there is an awesome opportunity for people like you who have ur own blogs n sites…I came across this site called Myndnet.com…it’s a platform for people to buy and sell IT related information. and everytime you sell some information you get paid for it…Good money for people like us in the IT domain. Here the link http://www.myndnet.com/login.jsp?referral=alpa83&channel=al500
Sign up is free…check it out…
You can contact me at my id here for more questions : barot.alpa@gmail.com
Cheers
Alpa
Post a Comment