Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- size(500,450);
- smooth();
- frameRate(4);
- }
- //random on both sides
- void draw(){
- background(150);
- float [] randomArray = new float [12];
- for(int i=0; i<12; i++)
- randomArray[i]=random(height);
- }
- int x1=200;
- int x2=300;
- /*for(int i=0; i<10; i++){
- line(x1, 0, x1, height);
- line(x2, 0, x2, height);
- line(x1, random(height), x2, random(height));
- */
- for(int i=1; i<10; i++){for(int j=1; j<11; j++){
- line(x1,randomArray[i],x2,randomArray[j]);
- }
- }
- }
Add Comment
Please, Sign In to add comment