Posted By

charlieMonroe on 05/12/11


Tagged

float


Versions (?)

Processing sample code


 / Published in: Processing
 

  1.  
  2. float a = 100;
  3.  
  4. void setup()
  5. {
  6. size(640, 200);
  7. stroke(255);
  8. }
  9.  
  10. void draw()
  11. {
  12. background(51);
  13. a = a - 0.5;
  14. if (a < 0) {
  15. a = height;
  16. }
  17. line(0, a, width, a);
  18. }
  19.  

Report this snippet  

You need to login to post a comment.