https://github.com/chux0519/purr
Reproducing images with geometric primitives. Rust implementation of [primitive](https://github.com/fogleman/primitive).
https://github.com/chux0519/purr
art graphics primitives rust
Last synced: 6 months ago
JSON representation
Reproducing images with geometric primitives. Rust implementation of [primitive](https://github.com/fogleman/primitive).
- Host: GitHub
- URL: https://github.com/chux0519/purr
- Owner: chux0519
- License: bsd-3-clause
- Created: 2020-07-28T08:38:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-18T09:29:31.000Z (almost 4 years ago)
- Last Synced: 2025-04-09T10:28:46.994Z (6 months ago)
- Topics: art, graphics, primitives, rust
- Language: Rust
- Homepage:
- Size: 15.3 MB
- Stars: 25
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Purr
It's a rust implementation of fogleman's [primitive](https://github.com/fogleman/primitive).
Created at Rusty Days Hackathon, 2020.
For more details about the algorithm, check this out: [Hill Climbing](https://en.wikipedia.org/wiki/Hill_climbing)
## Features
- fast(even faster than the original version), check [purrmitive](./purrmitive/README.md) 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](https://github.com/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](./purrmitive-ffi/README.md)