new README and examples
with caveats about blanks & square pictures
This commit is contained in:
parent
67c7962634
commit
8ad7407935
7 changed files with 22 additions and 8 deletions
24
README.md
24
README.md
|
|
@ -1,15 +1,29 @@
|
|||
# image-triangles
|
||||
|
||||
Makes a [voroni diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) and fills each cell with the average color the image below in. Please note, there's currently a bug, only square images will work. Additionally, some cells will be blank.
|
||||
|
||||
### examples
|
||||

|
||||

|
||||

|
||||

|
||||
<!--  -->
|
||||
<!--  -->
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
### to run:
|
||||
|
||||
#### with nix
|
||||
|
||||
```
|
||||
nix run --experimental-features 'nix-command flakes' -- --cornerCount 800 --input examples/birds-eye-view.png --output output.svg
|
||||
```
|
||||
|
||||
#### with cabal
|
||||
Install [cabal & ghc](https://www.haskell.org/ghcup/) if you don't have them.
|
||||
|
||||
```
|
||||
cabal update
|
||||
cabal run image-triangles -- --cornerCount 800 --input examples/sierra.jpg --output output.svg
|
||||
cabal run image-triangles -- --cornerCount 800 --input examples/birds-eye-view --output output.svg
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue