Skip to content

AlesSrsen/oop-ascii-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Art

pipeline status

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)

How to do it

  1. Make your repository private
  2. Read the instructions
  3. Play lofi hip hop radio
  4. ???
  5. Profit

ASCII Art implementation

Example run

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

Available arguments

Currently available arguments are shown below. Some arguments need additional parameters.

Loaders

There must be exactly one loader specified.

--image -i <path>
--image-random

Filters

--flip <x/y>
--brightness <-255/+255>
--invert
--rotate <-360/+360> Must be multiple of 90

Converters

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>

Exporters

By default --output-console is used.

--output-file -o <path>
--output-console

Test

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.

About

Ascii Art converter as OOP course semestral task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages