Skip to content

cdaein/ssam-examples

Repository files navigation

Ssam Examples

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.

Run individual Sketches

Replace <sketch-name> with one of the sketch files in src/ts.

SKETCH=basic-drawing npm run dev

Run the whole sketchbook

...

Create your own sketch

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.

Build

To build JS version from TypeScript sketches in src/ts, run:

npm run jsbuild

To build the entire sketchbook,

...