Last active
December 18, 2021 15:53
-
-
Save luca/547b3af9accdc759d93287248cab5484 to your computer and use it in GitHub Desktop.
Base P5js Sketch
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 w(val) { | |
if (val == null) return width; | |
return width * val; | |
} | |
function h(val) { | |
if (val == null) return height; | |
return height * val; | |
} | |
function setup() { | |
createCanvas(400, 400); | |
} | |
function draw() { | |
background(250); | |
} | |
// function keyTyped() { | |
// if (key === ' ') { | |
// if (isLooping()) { | |
// noLoop(); | |
// } else { | |
// loop(); | |
// } | |
// } | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment