Tuesday, February 02, 2010

Horizon

void setup() {
  size(800,450);
  background(255);
  smooth();
  strokeWeight(1);
}

int i = 0;
void draw() {
  translate(width/2, height/2+100);
  line(width*sin(i), height*cos(i), width*tan(i), 0);
  i++;
}

infoinfo

submitted by: charles_m_dietrich
views: 



Tags: horizon

commentscomment

loading loading...

 

Add a comment: