Crates.io | primitive |
lib.rs | primitive |
version | 0.1.0 |
source | src |
created_at | 2017-10-13 16:42:40.743235 |
updated_at | 2017-10-13 16:42:40.743235 |
description | Approximates images by drawing random lines |
homepage | https://github.com/anthonynguyen/primitive |
repository | https://github.com/anthonynguyen/primitive |
max_upload_size | |
id | 35519 |
size | 15,554 |
primitive
primitive is a Rust program that approximates images by drawing random lines.
Assuming you have Rust installed, run
cargo install primitive
primitive 0.1.0
Anthony Nguyen <anknguyen@gmail.com>
USAGE:
primitive [OPTIONS] --input <INPUT_FILE> [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --input <INPUT_FILE> Input filename
-n, --iterations <NUM_ITERS> Number of iterations to run [default: 1000000]
-l, --line-length <LINE_LENGTH> The length (in pixels) of the lines to draw [default: 25]
--max-angle <MAX_ANGLE> The maximum angle (in degrees) to generate [default: 360]
--min-angle <MIN_ANGLE> The minimum angle (in degrees) to generate [default: 0]
-o, --output <OUTPUT_FILE> Output filename
SUBCOMMANDS:
bench Runs in benchmark mode
help Prints this message or the help of the given subcommand(s)
primitive is licensed under the MIT license. Please see the LICENSE
file for
more details.