Minimal p5.js starter example
The http.tsx
file returns an HTML response with the client.ts
file as a module script that is loaded on the client.
The client.ts
file imports p5 from esm.sh
and contains the p5 code.
See also: https://www.val.town/v/saolsen/p5