Processing sample code


/ Published in: Processing
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.