Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdaein/ssam-thing-examples
Example sketches using Ssam.js and thi.ng/umbrella
https://github.com/cdaein/ssam-thing-examples
canvas create-ssam creative-coding ssam thing-umbrella
Last synced: 14 days ago
JSON representation
Example sketches using Ssam.js and thi.ng/umbrella
- Host: GitHub
- URL: https://github.com/cdaein/ssam-thing-examples
- Owner: cdaein
- Created: 2024-02-24T17:26:12.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T17:27:44.000Z (6 months ago)
- Last Synced: 2024-12-12T12:45:52.360Z (2 months ago)
- Topics: canvas, create-ssam, creative-coding, ssam, thing-umbrella
- Language: TypeScript
- Homepage:
- Size: 322 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssam-thing-examples
A collection of creative coding example sketches using [Ssam.js](https://github.com/cdaein/ssam) and [Thing Umbrella](https://github.com/thi-ng/umbrella).
## How to run
1. Clone this repo.
2. `npm install`
3. `SKETCH= npm run dev`## Examples
| source file | result | notes |
| :-----------------------------------------: | :--------------------------------------------: | :-----------------------------------: |
| [`basic-shapes`](./src/basic-shapes.ts) |  | basic drawing |
| [`color-gradient`](./src/color-gradient.ts) |  | oklab color gradient |
| [`image-load`](./src/image-load.ts) |  | load an image file |
| [`paths-hole`](./src/paths-hole.ts) |  | path with a hole (counter-shape) |
| [`paths`](./src/paths.ts) |  | different types of path drawings |
| [`svg-export`](./src/svg-export.ts) |  | convert Canvas drawing to an SVG file |
| [`svg-to-canvas`](svg-to-canvas.ts) |  | parse SVG file and draw on Canvas |