Created
November 24, 2019 17:54
-
-
Save lpmtsf/67e2fbbd4f07168e2f2c828fa92f135a 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
| function setup() { | |
| createCanvas(400, 400); // canvas | |
| angleMode(DEGREES); // lets use degrees instead of radians | |
| rectMode(CENTER); // lets our rectangles starts from center | |
| ctx = drawingContext; // this one is for using native Js canvas features | |
| x = width / 2; // x coordinate of center of canvas | |
| y = height / 2; // y coordinate of center of canvas | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment