SHARE
TWEET

Untitled

a guest Oct 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int a = 0;
  2. int b = 0;
  3. int s = 25;
  4. void setup(){
  5.   size(500, 500);
  6.   background(#9DD5FF);
  7.   stroke(#FF83BD);
  8.   strokeWeight(7);
  9. }
  10.  
  11. void draw(){
  12.   int a1 = a + s;
  13.   int b1 = b + s;
  14.   if (random(2) < 0.75){
  15.     line(a1, b1, a, b);
  16.   } else{
  17.     line(a, b1, a1, b);
  18.   }
  19. a = a + s;
  20. if (a > width){
  21.   a = 0;
  22.   b = b + s;
  23.   }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top