Skip to content

Instantly share code, notes, and snippets.

@georgesb
Last active April 30, 2020 19:11
Show Gist options
  • Save georgesb/1b319ee8c8b93b33cfe76784e58b0f61 to your computer and use it in GitHub Desktop.
Save georgesb/1b319ee8c8b93b33cfe76784e58b0f61 to your computer and use it in GitHub Desktop.
Minimalist1
<script src="https://cdn.jsdelivr.net/npm/p5"></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);
noStroke();
fill('black');
triangle(50, 350, 200, 100, 350, 350);
circle(242, 250, 160);
fill('white')
arc(242, 250, 160, 160, radians(28), radians(270), OPEN);
fill('black')
arc(500, 200, 150, 150, down, up)
rect(500, 50, 100, 300)
fill('white')
arc(500, 200, 150, 150, up, down)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment