Created
June 23, 2019 12:47
-
-
Save bharathvaj-ganesan/9c656a64b2dbe0295c4d621ee06402d8 to your computer and use it in GitHub Desktop.
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
let size = 500; | |
function setup() { | |
if (windowWidth < size) { | |
size = windowWidth; // p5.js property containing window width | |
} | |
createCanvas(size, size); // Creates a new canvas of given size | |
background(25); // adds color to canvas background | |
angleMode(DEGREES); // sets p5.js anglemode to degrees | |
noLoop(); // stop the draw function from executing continuously | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment