The idea of this project is to load images, translate them into ASCII ART images, optionally apply filters, and save them. (https://courses.fit.cvut.cz/BI-OOP/projects/ASCII-art.html)
- Make your repository private
- Read the instructions
- Play lofi hip hop radio
- ???
- Profit
In the root directory outside the sbt shell:
sbt "run --image ./src/main/resources/images/linear_gradient_rectangle.png --output-file ./out/image.txt --rotate -270 --output-console --table-short-bourke --flip y"
In sbt shell in the root directory:
run --image "./src/main/resources/images/linear_gradient_rectangle.png" --output-file "./out/image.txt" --rotate -270 --output-console --table-short-bourke --flip y
Currently available arguments are shown below. Some arguments need additional parameters.
There must be exactly one loader specified.
--image -i <path>
--image-random
--flip <x/y>
--brightness <-255/+255>
--invert
--rotate <-360/+360> Must be multiple of 90
There must be maximum one converter specified.
By default --table-bourke
is used.
--table-bourke
--table-short-bourke
--nonlinear-default
--nonlinear-outliers
--table-custom <table>
By default --output-console
is used.
--output-file -o <path>
--output-console
Run tests with sbt test
(Or just test
inside the sbt interactive shell).
Running tests in sbt shell has problems with cleanup of temporary files.