Skip to content

larryng/primg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

primg

Primitive Pictures ported to Rust.

Some features missing, but roughly 1.5x faster.

Usage

$ cargo run --bin main --release -- --help
    Finished release [optimized] target(s) in 0.0 secs
     Running `target/release/main --help`
primg

USAGE:
    main [OPTIONS] <INFILE> <OUTFILE>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --alpha <alpha>                Alpha (1-255) [default: 128]
    -n, --num-shapes <num-shapes>      Number of shapes [default: 100]
    -s, --output-size <output-size>    Output size [default: 1024]
    -q, --quality <quality>            Quality (1-3) [default: 2]
    -t, --shape <shape>                Shape type (triangle, ellipse, rectangle, rotated-rectangle) [default: triangle]

ARGS:
    <INFILE>     Path to image file
    <OUTFILE>    Output file path

About

Reproducing images with geometric primitives. Rust port of https://github.com/fogleman/primitive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages