Nuanced Pterodactyl Monk

    primitive-cli

    1.0.0 • Public • Published

    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

    Install

    npm i primitive-cli

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6 kB

    Total Files

    10

    Last publish

    Collaborators

    • fisch0920