Gets an ASCII painting input and generates the necessary paint commands for Google's specialized painting machine.
Clone this project and installs its dependencies
npm install
To generate a painting command out file execute:
./painting.js generate -i ascii_image.in -o ascii_image.out
-i, --input
Input file patch
-o, --output
Output file path where generator will create the commands file.
-s, --strategy
Strategy to be applied. Default: hlines (Horizontal Lines)
Executes a commands output file and generates the ASCII image.
./painting.js paint -i ascii_image.out -r 14 -c 80
-i, --input Command file path
-r, --rows Canvas' rows
-c, --columns Canvas' columns
Generates a PRINT_LINE command for all the lines within each row.
./painting.js generate -i ascii_image.in -s hlines -o ascii_image.out
Generates a PRINT_LINE command for all the lines within each column.
./painting.js generate -i ascii_image.in -s vlines -o ascii_image.out