Last active
May 6, 2020 20:08
-
-
Save georgesb/179c58e37891420b144fd5f358a2144e to your computer and use it in GitHub Desktop.
Circles + Radii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script> | |
<script src="script.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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