xxxxxxxxxx
108
/*
This is a Wassily Kandinsky: link to the Orignal
https://www.wassilykandinsky.net/work-370.php
*/
function setup() {
createCanvas(400, 300);
}
function draw() {
background(220);
//top squares
noStroke()
fill(" yellow");
square(0,0,100);
//this is the 1st square
fill("blue");
square(100,0,100);
//this is the 2nd square
fill("black");
square(200,0,100);
//this is the 3rd square
fill('red')
square(300,0,100);
//this is the 4t square
fill(0,0,255);
stroke(255,0,0);
strokeWeight(8);
circle(50,50,90);
//this is for the 1st square
fill(0,128,0);
stroke(102,102,0);
circle(150,50,90);
//this is for the 2nd square
fill('red');
stroke('yellow');
circle(250,50,90);
//this is for the 3rd square
fill(214,126,220);
stroke('black');
circle(350,50,90);
//this is for the 4th square
//middle squares
noStroke()
square(0,100,100);
//This is the 1st square
fill("beige")
square(100,100,100);
//This is the 2nd square
fill(252,186,3);
square(200,100,100);
//This is the 3rd square
fill(0,0,139);
square(300,100,100);
//This is the 4th square
fill('yellow');
stroke('darkblue');
circle(50,150,90);
//this is for the 1st square
fill('blue');
stroke('red');
circle(150,150,90);
//this is for the 2nd square
fill('brown');
stroke('beige');
circle(250,150,90);
//this is for the 3rd square
fill('white');
stroke(184,219,199);
circle(350,150,90);
//this is for the 4th square
//bottom squares
noStroke()
fill("red");
square(0,200,100);
//This is the 1st square
fill("blue");
square(100,200,100);
//This is the 2nd square
fill("orange")
square(200,200,100);
//This is the 3rd square
fill("red")
square(300,200,100);
//This is the 4th square
fill('lightblue');
stroke(64,64,64);
circle(50,250,90);
//this is for the 1st square
fill(135,255,255);
stroke('red');
circle(150,250,90);
//this is for the 2nd square
fill('yellow');
stroke('red');
circle(250,250,90);
//this is for the 3rd square
fill('darkblue');
stroke('beige');
circle(350,250,90);
//this is for the 4th square
}
function mousePressed(){
save("rustandblue.png")
}