Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // ISIA EDITORIA 1,
  2. // BELCASTRO, DE FAABRITIS, MAKHOUL, MARCONE, TESCARI,
  3. // SPERIMENTAZIONE DEL COMANDO random
  4.  
  5. void setup() {
  6. size(500,500);
  7. background(0);
  8. }
  9.  
  10.  
  11. void draw() {
  12. stroke(random(255), 0, random(255)); // R, G, B
  13. noFill();
  14.  
  15. // the screen is 100 pixels wide and 100 pixels tall
  16. // lines start at the middle of the screen (50, 50)
  17. line(mouseX, mouseY, random(250), random(250) );
  18. ellipse(mouseX, mouseY, 3, 3 );
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement