Skip to content

Instantly share code, notes, and snippets.

@georgesb
Last active May 6, 2020 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgesb/179c58e37891420b144fd5f358a2144e to your computer and use it in GitHub Desktop.
Save georgesb/179c58e37891420b144fd5f358a2144e to your computer and use it in GitHub Desktop.
Circles + Radii
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script>
<script src="script.js"></script>
function setup() {
createCanvas(650, 450);
background(240);
noFill();
strokeWeight(1);
stroke(0);
circle(300, 175, 200);
circle(350, 225, 200);
circle(350, 175, 100);
circle(300, 225, 100);
line(250, 225, 350, 225);
line(300, 175, 400, 175);
line(300, 175, 300, 225);
circle(300, 200, 50);
line(300, 175, 300, 225);
line(350, 175, 350, 225);
circle(350, 200, 50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment