https://github.com/lingdong-/fishdraw
procedurally generated fish drawings
https://github.com/lingdong-/fishdraw
art drawing plotter procedural-generation
Last synced: 5 months ago
JSON representation
procedurally generated fish drawings
- Host: GitHub
- URL: https://github.com/lingdong-/fishdraw
- Owner: LingDong-
- License: mit
- Created: 2021-08-11T14:50:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-08T23:13:57.000Z (about 4 years ago)
- Last Synced: 2025-05-15T20:03:55.283Z (5 months ago)
- Topics: art, drawing, plotter, procedural-generation
- Language: JavaScript
- Homepage: https://fishdraw.glitch.me/
- Size: 1.15 MB
- Stars: 2,235
- Watchers: 25
- Forks: 105
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fishdraw
*procedurally generated fish drawings. [demo](https://fishdraw.glitch.me/)*

- generates all sorts of weird fishes
- outputs polylines (supported format svg, json, csv, etc.)
- full procedural generation, single file no dependencies
- plotter-centric
- export drawing animation:
## usage
basic
```
node fishdraw.js > output.svg
```specify seed (from a string), speed of drawing and output format:
```
node fishdraw.js --seed "Biggus fishus" --format smil --speed 2 > output.svg
```- the seed string is used as the name of the fish (printed in the drawing). If unspecified, a random pseudo-Latin name will be auto generated.
- the speed number is used to control the speed of drawing animation. Larger the number is, faster it draws. This option works only with format `smil`.
- format options: `svg` (regular svg), `smil` (animated svg), `csv` (each polyline on a comma-separated line) and `json`.use as JS library:
```js
const {fish,generate_params} = require('./fishdraw.js');
let polylines = fish(generate_params());
console.log(polylines);
```## gallery































