Skip to content
/ purr Public

Reproducing images with geometric primitives. Rust implementation of [primitive](https://github.com/fogleman/primitive).

License

Notifications You must be signed in to change notification settings

chux0519/purr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purr

It's a rust implementation of fogleman's primitive.

Created at Rusty Days Hackathon, 2020.

For more details about the algorithm, check this out: Hill Climbing

Features

  • fast(even faster than the original version), check purrmitive for more details
  • provide both rust lib and c lib (WIP)
  • there is also a WIP gui app written in Qt, check chux0519/purrmitive-qt

Usage

Use purrmitive as rust lib

purrmitive = "*"

or install purr as binary

cargo install --bin purr --features="cli" purrmitive

or

cd purrmitive && cargo run --release --features=cli --bin=purr -- -i ./assets/input.png -o output.gif -n 100

most primitive flags are supported, it should be a dropin replacement in most cases.

or use it as a c lib (WIP)

see purrmitive-ffi

About

Reproducing images with geometric primitives. Rust implementation of [primitive](https://github.com/fogleman/primitive).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages