Giter VIP home page Giter VIP logo

fishdraw's Introduction

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), 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:

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

gallery

fishdraw's People

Contributors

lingdong- avatar emikulic avatar kevcui avatar

Stargazers

Isaac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.