Skip to content

Instantly share code, notes, and snippets.

@hmharshit
Created November 4, 2018 04:14
Show Gist options
  • Save hmharshit/c17bdd133ff4927a2c7c57380d544187 to your computer and use it in GitHub Desktop.
Save hmharshit/c17bdd133ff4927a2c7c57380d544187 to your computer and use it in GitHub Desktop.
void setup() {
size(640, 360);
noStroke();
noLoop(); // Run once and stop
}
void draw() {
background(100);
fill(31.875); // to fill color in 1st circle
arc(width/2, height/2, 150, 150, 0, 1.25664); //
fill(124.875); // to fill color in 2nd circle
arc(width/2, height/2, 150, 150, 1.25664, 3.14159);
fill(62.875); // to fill color in 3rd arc
arc(width/2, height/2, 150, 150,3.14159,6.28319);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment