Browse Source

Add shape class boilerplate

main
Luke Murphy 5 years ago
parent
commit
c39f11c54a
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 15
      vocoder/static/vocoder.js

15
vocoder/static/vocoder.js

@ -104,6 +104,21 @@ function generateNewShape() {
ellipse(100, 100, 25, 25); // TODO: experimenting for now ...
}
class GeneratedShape {
move() {
/**
* Move the shape in some direction.
**/
}
display() {
/**
* Show the shape on the canvas.
**/
ellipse(random(600), random(600), 10, 10); // TODO: experimenting for now ...
}
}
function setup() {
/**
* The p5.js initial setup function.

Loading…
Cancel
Save