Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/error-four-o-four/sketches

A hotchpotch of p5.js sketches
https://github.com/error-four-o-four/sketches

genart p5js

Last synced: 23 days ago
JSON representation

A hotchpotch of p5.js sketches

Awesome Lists containing this project

README

        

# [Sketches](https://error-four-o-four.github.io/sketches/)

A hotchpotch (monorepo) of p5.js sketches

## cli commands

#### `npx create`

use `npx create foo` to create a new sketch based on this [template](./templates/instance)

#### options
* pass a \ as the first positional argument or use `--name ` (alias: `-n`)
* either use `--tmpl <'global' | 'instance'>` to choose a specific template (alias: `-t`)
* or use `--source ` to use an existing sketch as a template (alias: `--src`, `-s`)

#### `npx fetch`

use `npx fetch [email protected]` to download a specific library from [cdnjs](https://cdnjs.com/)

## development

use `npm run dev -w foo` to work on a single sketch

## production

use `npm run build -w foo` to create a start point for a new sketch on [open processing](https://openprocessing.org/)

use `npm run build` to bundle the files, which will be deployed to github\
update included [sketches](./vite.options.ts) to specify the deployed files\
use `npm run preview` to test deployed files locally