Skip to content

Instantly share code, notes, and snippets.

@georgesb
Last active April 30, 2020 19:29
Show Gist options
  • Save georgesb/500e6baae7052df2330ec818b5b017e3 to your computer and use it in GitHub Desktop.
Save georgesb/500e6baae7052df2330ec818b5b017e3 to your computer and use it in GitHub Desktop.
Minimalist
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script>
<script src="script.js"></script>
function setup() {
let up = radians(270);
let down = radians(90);
let left = radians(180);
let right = radians(0);
createCanvas(650, 450);
background(240);
fill('black');
square(200, 200, 100);
circle(200, 200, 200);
fill('white');
arc(200, 200, 200, 200, right, down);
fill('white');
stroke('black');
strokeWeight(2);
circle(500, 200, 200);
fill('black')
arc(500, 200, 200, 200, radians(15), radians(255), OPEN);
line(454, 85, 616, 244);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment