Skip to content

Instantly share code, notes, and snippets.

@leanda
Created June 10, 2017 10:37
Show Gist options
  • Save leanda/260698ed0964d72ee47ec7d6dea4bebc to your computer and use it in GitHub Desktop.
Save leanda/260698ed0964d72ee47ec7d6dea4bebc to your computer and use it in GitHub Desktop.
Circles with modified stroke weight p5
function setup() {
createCanvas(windowWidth, windowHeight);
noFill();
}
function draw() {
background(255);
var count = 0;
for (var x = 50; x <= width-50; x += 50) {
for (var y = 50; y <= height-50; y += 50) {
strokeWeight(count*0.20);
ellipse(x, y, 20, 20);
count++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment