Skip to content

sgpl/fishdraw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fishdraw

procedurally generated fish drawings. demo

  • 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) and output format:

node fishdraw.js --seed "Biggus fishus" --format smil > 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.
  • format options: svg (regular svg), smil (animated svg), csv (each polyline on a comma-separated line) and json.

use as JS library:

const {fish,generate_params} = require('./fishdraw.js');
let polylines = fish(generate_params());
console.log(polylines);

gallery

About

procedurally generated fish drawings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%