src/scripts/sketch-template.js
// all non-static p5 methods and variables here. Any static methods need to be accessed with the p5 namespace (imported above).
all non-static p5 methods and variables here. Any static methods need to be accessed with the p5 namespace (imported above).
all non - static p5 methods and variables here . Any static methods need to be accessed with the p5 namespace ( imported above ) .
function sketch(p) {
  p.preload = () => {
  }
  p.setup = () => {
  }
  p.draw = () => {
  }
  p.mousePressed = () => {
  }
  p.keyReleased = () => {
  }
}
function sketch ( p ) { p . preload = ( ) => { } p . setup = ( ) => { } p . draw = ( ) => { } p . mousePressed = ( ) => { } p . keyReleased = ( ) => { } }
all non-static p5 methods and variables here.
all non - static p5 methods and variables here .
// ~~~~~~ Initialize variables ~~~~~~~~~ // ~~~~~~ React lifecycle methods ~~~~~~ // ~~~~~~ Setup ~~~~~~ // ~~~~~~ Draw ~~~~~~ // ~~~~~~ Other commonly used p5 methods // ~~~~~~ Helper functions ~~~~~~~~~ // ~~~~~~ Classes ~~~~~~~~~~~~