slightly faster & now with a cli

This commit is contained in:
Jack Wines 2023-02-02 22:15:42 -08:00
parent bcdb0ccead
commit e61aeea607
4 changed files with 36 additions and 30 deletions

View file

@ -1,7 +1,7 @@
# image-triangles
### examples
![Sierra mountians original](examples/sierra.jpg)
![Sierra mountians post-filter](examples/sierra-result.svg)
![Sierra mountains original](examples/sierra.jpg)
![Sierra mountains post-filter](examples/sierra-result.svg)
![Dog original](examples/luna.jpeg)
![Dog post-filter](examples/luna-result.svg)
@ -11,6 +11,5 @@ install [cabal & ghc](https://www.haskell.org/ghcup/) if you don't have them.
```
cabal update
# change input file name in Main.hs line 95-ish
cabal run image-triangles -- -o output.svg --height 1000 --width 1000
cabal run image-triangles -- --cornerCount 800 --input examples/sierra.jpg --output output.svg
```