Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Created November 1, 2019 16:27
Show Gist options
  • Save mimetaur/9116253411ee6489de081db270bf3616 to your computer and use it in GitHub Desktop.
Save mimetaur/9116253411ee6489de081db270bf3616 to your computer and use it in GitHub Desktop.
Code 1 2019 - Week 5 Sketch 3 solution
function setup() {
createCanvas(300, 300);
}
function draw() {
background(180);
rectMode(CENTER);
fill("#EE3366");
applyMatrix();
translate(50,50);
angleMode(DEGREES);
rotate(45);
rect(0, 0, 50, 50);
rect(100, 0, 50, 50);
rect(200, 0, 50, 50);
rect(300, 0, 50, 50);
resetMatrix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment