After a semester of mostly bouncing balls, things changing color, inaccessible YouTube videos on how to code, I decided to work on a final assignment for Computational Media, AKA ICM, that would put braille on the canvas. Visual dots on a screen are still not useful to the blind, until it is printed on a laser printer, and put through a swell form machine. So my project is meant for a very specific audience: blind people who know a little something about programming, and have access to a swell form machine. In other words, I made this for me for now, and would love to have someone else use it.
ABOUT THE CODE
I worked on the code with some help from fellow ITP first year Luming Hao. I talked about how I saw the code design and Luming offered suggestions, fixed my mistakes, and so on.
The entire code is based on some variables I declare at the top of the program. I declare dot size, dot distance, cell distance, and line distance. These determine the side of the circle that forms the dots, and everything else about the spacing.
Then I have a function that draws a single braille dot, and a function that builds on it to draw braille dots 1 through 6.
Then I have letters in an array containing the table of braille dots. A is dot 1, b is dot 2, c is 1-4, etc.
There are other functions that have to do with spacing, the space bar, and so on.
Finally, in the draw function, is the line
braille (x, y, “”);
where x is the x coordinate start of the braille text position on the canvas, and y is the y coordinate start position of the braille on the canvas.
My code does not use grade 2 braille, and does not do capital letters. It cannot support much more than simple text. The smallest things, like quotes inside the text to be braille, can create undesired results. But for simple labeling, this program does alright.