primitive-cli
v1.0.0
Published
CLI to reproduce images from geometric primitives.
Downloads
15
Maintainers
Readme
primitive-cli
CLI to reproduce images from geometric primitives (Node.js + browser port of primitive).
This CLI is also available as a library.
Install
npm install -g primitive-cli
Usage
Usage: primitive [options]
Options:
-V, --version output the version number
-i, --input <filename> Path of input image to process
-o, --output <filename> Path to generate output image (default: out.png)
-s, --num-steps <number> Number of steps to process [1, 1000] (default: 200)
-e, --min-energy <number> Minimum energy to stop processing early [0, 1]
-a, --shape-alpha <number> Alpha opacity of shapes [0, 255] (default: 128)
-t, --shape-type <string> Type of shapes to use (rotated-ellipse, rectangle, random, etc) (default: triangle)
-c, --num-candidates <number> Number of top-level candidates per step [1, 32] (default: 1)
-r, --num-candidate-shapes <number> Number of random candidates shapes per step [10, 1000] (default: 50)
-m, --num-candidate-mutations <number> Number of candidate mutations per step [10, 500] (default: 100)
-E, --num-candidate-extras <number> Number of extra candidate shapes per step [0, 16] (default: 0)
-n, --nth-frame <number> Record every nth frame (for gifs) [1, 32] (default: 1)
-h, --help output usage information
Related
- primitive (js) - JS library for this CLI.
- primitive (go) - Original Go version by Michael Fogleman
License
MIT © Travis Fischer