Skip to content

transitive-bullshit/primitive-cli

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

primitive-cli

CLI to reproduce images from geometric primitives (Node.js + browser port of primitive).

NPM Build Status JavaScript Style Guide

This CLI is also available as a library.

Demo

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

License

MIT © Travis Fischer

Support my OSS work by following me on twitter twitter

About

CLI to reproduce images from geometric primitives.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published