Last active
April 30, 2020 19:29
-
-
Save georgesb/500e6baae7052df2330ec818b5b017e3 to your computer and use it in GitHub Desktop.
Minimalist
This file contains 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://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script> | |
<script src="script.js"></script> |
This file contains 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); | |
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