Last active
May 3, 2020 19:41
-
-
Save georgesb/a3d99b7f8e375cfe69ace2c9f27ea185 to your computer and use it in GitHub Desktop.
Simple Shapes
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
<!doctype html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/georgesb/lib/drawGrid.js"></script> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
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(){ | |
createCanvas(650,450); | |
drawGrid(); | |
} | |
function draw() { | |
fill('white'); | |
stroke('black'); | |
circle(100, 100, 50); | |
rect(50, 200, 100, 100); | |
triangle(200, 250, 300, 100, 400, 250); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment