
fishdraw
procedurally generated fish drawings. demo
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
procedurally generated fish drawings. demo
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
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。