Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Created November 1, 2019 17:00
Show Gist options
  • Save mimetaur/cddca81833b24e31eb7ace1f47eeefeb to your computer and use it in GitHub Desktop.
Save mimetaur/cddca81833b24e31eb7ace1f47eeefeb to your computer and use it in GitHub Desktop.
Week 6 Sketch #4 Solution
function setup() {
createCanvas(400, 400);
background(220);
fill(80);
}
function draw() {
translate(200, 200)
drawSpiral();
}
function drawSpiral() {
for (let i = 0; i < 500; i++) {
rotate(2);
scale(1.01);
strokeWeight(0.5);
ellipse(12, 12, 12, 12);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment