{"id":15685516,"url":"https://github.com/transitive-bullshit/primitive-cli","last_synced_at":"2025-05-07T17:13:16.353Z","repository":{"id":47998585,"uuid":"135625208","full_name":"transitive-bullshit/primitive-cli","owner":"transitive-bullshit","description":"CLI to reproduce images from geometric primitives.","archived":false,"fork":false,"pushed_at":"2022-12-09T13:25:41.000Z","size":608,"stargazers_count":9,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T17:13:11.122Z","etag":null,"topics":["art","generative-art","graphics","primitive","primitives"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transitive-bullshit.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-31T19:12:33.000Z","updated_at":"2024-07-23T12:32:52.000Z","dependencies_parsed_at":"2023-01-25T21:31:25.715Z","dependency_job_id":null,"html_url":"https://github.com/transitive-bullshit/primitive-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fprimitive-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fprimitive-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fprimitive-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fprimitive-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transitive-bullshit","download_url":"https://codeload.github.com/transitive-bullshit/primitive-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922339,"owners_count":21825639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["art","generative-art","graphics","primitive","primitives"],"created_at":"2024-10-03T17:26:02.034Z","updated_at":"2025-05-07T17:13:16.336Z","avatar_url":"https://github.com/transitive-bullshit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# primitive-cli\n\n\u003e CLI to reproduce images from geometric primitives (Node.js + browser port of [primitive](https://github.com/fogleman/primitive)).\n\n[![NPM](https://img.shields.io/npm/v/primitive-cli.svg)](https://www.npmjs.com/package/primitive-cli) [![Build Status](https://travis-ci.com/transitive-bullshit/primitive-cli.svg?branch=master)](https://travis-ci.com/transitive-bullshit/primitive-cli) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nThis CLI is also available as a [library](https://github.com/transitive-bullshit/primitive).\n\n[![Demo](https://storage.googleapis.com/transitive-bullshit-primitive/artem-bali-578205-unsplash-triangle-500.png)](https://transitive-bullshit.github.io/primitive-web/)\n\n## Install\n\n```bash\nnpm install -g primitive-cli\n```\n\n## Usage\n\n```bash\n  Usage: primitive [options]\n\n  Options:\n\n    -V, --version                           output the version number\n    -i, --input \u003cfilename\u003e                  Path of input image to process\n    -o, --output \u003cfilename\u003e                 Path to generate output image (default: out.png)\n    -s, --num-steps \u003cnumber\u003e                Number of steps to process [1, 1000] (default: 200)\n    -e, --min-energy \u003cnumber\u003e               Minimum energy to stop processing early [0, 1]\n    -a, --shape-alpha \u003cnumber\u003e              Alpha opacity of shapes [0, 255] (default: 128)\n    -t, --shape-type \u003cstring\u003e               Type of shapes to use (rotated-ellipse, rectangle, random, etc) (default: triangle)\n    -c, --num-candidates \u003cnumber\u003e           Number of top-level candidates per step [1, 32] (default: 1)\n    -r, --num-candidate-shapes \u003cnumber\u003e     Number of random candidates shapes per step [10, 1000] (default: 50)\n    -m, --num-candidate-mutations \u003cnumber\u003e  Number of candidate mutations per step [10, 500] (default: 100)\n    -E, --num-candidate-extras \u003cnumber\u003e     Number of extra candidate shapes per step [0, 16] (default: 0)\n    -n, --nth-frame \u003cnumber\u003e                Record every nth frame (for gifs) [1, 32] (default: 1)\n    -h, --help                              output usage information\n```\n\n## Related\n\n-   [primitive (js)](https://github.com/transitive-bullshit/primitive) - JS library for this CLI.\n-   [primitive (go)](https://github.com/fogleman/primitive) - Original Go version by [Michael Fogleman](https://www.michaelfogleman.com/)\n\n## License\n\nMIT © [Travis Fischer](https://github.com/transitive-bullshit)\n\nSupport my OSS work by \u003ca href=\"https://twitter.com/transitive_bs\"\u003efollowing me on twitter \u003cimg src=\"https://storage.googleapis.com/saasify-assets/twitter-logo.svg\" alt=\"twitter\" height=\"24px\" align=\"center\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fprimitive-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransitive-bullshit%2Fprimitive-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fprimitive-cli/lists"}