Difference between revisions of "Talk:IAT 800 Weekly Study Groups"

From BioV
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{
+
<pre>
 
int x = 0;
 
int x = 0;
  
Line 20: Line 20:
 
   }   
 
   }   
 
}
 
}
}
+
</pre>

Revision as of 16:33, 27 September 2006

int x = 0;

void setup() {
  size(320, 320);
  background(0);
  stroke(255);
  strokeWeight(3);
}

void draw() {

  line(x, height/2, x+5, height/2);
  
  //
  x = x + 1;
  if (x > width) {
    x = 0;
    background(0);
  }  
}