Skip to content

Instantly share code, notes, and snippets.

@georgesb
Last active May 6, 2020 20:05
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/8d230cb760cf4056769db3ce36b9c6f2 to your computer and use it in GitHub Desktop.
Save georgesb/8d230cb760cf4056769db3ce36b9c6f2 to your computer and use it in GitHub Desktop.
Descartes' Theorem
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script>
<script src="script.js"></script>
function setup() {
createCanvas(310, 450);
background(0);
noStroke();
fill('teal');
arc(155,450,310,310,radians(180),radians(0));
fill('#FF5733');
arc(355,-20,710,710,radians(90),radians(270));
fill('#FFC300');
circle(57,263,112);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment