Socket
Socket
Sign inDemoInstall

primitive-cli

Package Overview
Dependencies
467
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    primitive-cli

CLI to reproduce images from geometric primitives.


Version published
Weekly downloads
11
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

License

MIT © Travis Fischer

Keywords

FAQs

Last updated on 07 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc