Skip to content

Instantly share code, notes, and snippets.

@luca
Last active December 18, 2021 15:53
Show Gist options
  • Save luca/547b3af9accdc759d93287248cab5484 to your computer and use it in GitHub Desktop.
Save luca/547b3af9accdc759d93287248cab5484 to your computer and use it in GitHub Desktop.
Base P5js Sketch
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