Home » Easy » Lesson 3: Cube Font

Lesson 3: Cube Font

Using the code given in the last tutorial, it is easy to create a cube font. We have altered the code to display letters, but used the same principle.

Again, we have defined a matrix A of MxN but this time we have increased its with to fit in all the letters.

If you look very clearly, you’ll see that the letters Open are formed upside down. Of course, one could fill the matrix using a text file, but we kept it as simple as possible to implement. Finally we have used this loop to draw the matrix: