Creating TetrisClock using OpenCV #2
Implementing text tetris In the previous article, you learned how to implement numbers. This time, I will port the character tetris implemented by Brian Lough to Python in https://github.com/toblum/TetrisAnimation/blob/master/src/TetrisLetters.h . It is not very different from the previous number implementation. You only need to port the values of the fall_instr_let structure that makes up the character. Original code analysis Character Analysis You can find out by looking at https://github.com/toblum/TetrisAnimation/blob/master/src/TetrisLetters.h for Tetris character. This header file contains information that can represent the characters from ascii code 33 (!) To ascii code 90 (Z) in tetris. // // ASCII characters // // ********************************************************************* // ascii 33 - ! // ********************************************************************* fall_instr_let a33[ 5 ] = { { 0 , 0 , 2 , 16 , 0 }, { 2 , 5 , 3 , 13 , 2 }, {...