xxxxxxxxxx
/*------------------------
Project 1- Rounds
Created 3/17
Kali Johnston
SP 2017
knjohnston0704@gmail.com
---------------------------*/
void setup(){
size(2000,2000);
background(255);
noFill(); //doesn't fill objects
noLoop(); //doesn't animate in the void draw
}
void draw(){
//foreground
for (int i=0; i<2000; i+=50){ //for loop causes objects to spread everywhere
for(int j=0; j<2000; j+=50){
rotate(random(-0.1,0.5)); //random rotation
stroke(0,random(139,255)); //random stroke from medium grey to black
strokeWeight(random(1,10)); //random stroke weight
rect(i,j,80,80,100); //round 1 forms shape with round 2. additional value at the end causes rounding of the square corners
rect(i+50,j+50,80,80,100); //round 2
}
}
//background
for (int i=0; i<2000; i+=50){
for(int j=0; j<2000; j+=50){
rotate(random(-0.1,0.5));
stroke(0,random(0,138)); //random stroke from medium grey to white
strokeWeight(random(1,10));
rect(i,j,30,30,100);
rect(i+50,j+50,30,30,100);
}
}
}