top of page
harp blue.png

Results

Manual

Using the command line enter clang ascii.c -l SDL2 -l SDL2_ttf. Once executed enter a.exe *your file path*. The terminal would ask you to enter the RGB colour values for the text. You can enter the values with spaces in between e.g. 50 70 230  or individually entering each value. Once entered the terminal should ask you to enter the RGB colour values for the background. Once entered the terminal should ask you to enter the font size. Size 3 is recommended as the final image in the window will fit on a standard 1920x1080p resolution screen. Once the font size is entered the terminal will ask you to enter the character set used in the ASCII image. Enter the characters in any order you like however as one line.

lenna diagram.png

Fig 1

result lenna.png

Result of Fig 1 inputs

Saving

When the SDL window is selected by pressing B, P, J or T the terminal should display a prompt to enter the name of the image or text file. By pressing B a .bmp image is saved, P for .png, J for .jpg and T for .txt. These files will be saved in the location of the executable. 

lenna text img.png

Example txt file

bottom of page