Sketches created with Ssam.js to demonstrate common use cases.
Written with TypeScript. You can find JavaScript versions inside src/js
, which are automatically compiled from TS sketches.
Replace <sketch-name>
with one of the sketch files in src/ts
.
SKETCH=basic-drawing npm run dev
...
Check out the Ssam documentation to learn how to create a creative coding sketch with Ssam. It is recommended that you use npm create ssam@latest
command to set up your own sketch with one of the provided templates.
To build JS version from TypeScript sketches in src/ts
, run:
npm run jsbuild
To build the entire sketchbook,
...