Last active
April 30, 2020 19:11
-
-
Save georgesb/1b319ee8c8b93b33cfe76784e58b0f61 to your computer and use it in GitHub Desktop.
Minimalist1
This file contains hidden or 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"></script> | |
<script src="script.js"></script> |
This file contains hidden or 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() { | |
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