Instantly share code, notes, and snippets.

Embed
What would you like to do?
ICM_01 Week_Mondrian
function setup() {
createCanvas(500, 520);
}
function draw() {
background(255, 254, 250);
noStroke()
// Compotion
fill(30);
rect(50, 60, 10, 420);
fill(30);
rect(120, 15, 10, 50);
fill(30);
rect(180, 320, 10, 160);
rect(320, 10, 10, 460);
rect(480, 15, 10, 470);
rect(400, 190, 10, 130);
rect(5, 60, 480, 10);
rect(5, 180, 45, 10);
rect(330, 180, 150, 10);
rect(5, 375, 500, 10);
rect(50, 430, 270, 10);
rect(50, 320, 480, 10);
rect(180, 460, 300, 10);
// Red Rectangle
fill(200, 2, 15);
rect(60, 70, 260, 250);
// Yellow Rectangle(right)
fill(255, 204, 0);
rect(330, 70, 150, 110);
fill(255, 204, 0);
rect(330, 10, 150, 50);
// Blue Rectangle
fill(0, 51, 204);
rect(330, 385, 150, 75);
// Yellow Rectangle(Left)
fill(255, 204, 0);
rect(5, 385, 45, 95);
// Red Rectangle(Right)
fill(200, 2, 15);
rect(490, 385, 45, 95);
// Black Rectangle(left)
fill(20);
rect(60, 330, 120, 100);
// Black Rectangle(Right)
fill(20);
rect(190, 440, 130, 20);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment