Open main menu

CDOT Wiki β

Changes

DPS921/ASCII

1 byte removed, 22:41, 11 December 2018
Algorithm and Pseudocode
[[File: chunk.png|150px]]
Once we have a single value we need to map its luminosity to a character we are going to replace it widthwith. The character templates are small images we have in our project folder (Pound.png, AT.png W.png etc.) These are small images 7 by 11 pixels only, and we read all images into 2D array. The dimensions of our character template determines the size of the chunk. We have experimented with different size templates and found that smaller font to be preferable. Once we know which character we want to print we will copy, pixel by pixel from our template into output array of unassigned chars of the same length as our original frame.
[[File:charTmpl.png|150px]]
120
edits