In one of my projects, which may never be destined to be born (due to lack of time), it took an electronic scoreboard.
But the adjective "electronic" is exclusively figurative. It was necessary to implement an electronic scoreboard on the Web, such that it would not kill anyone with a current and visually look like its true electrical parents.
The idea of a LED board with one light bulb color (white) was taken as a basis.
The task was the following - the scoreboard should scroll left and right quickly inside the text and with the possibility of minimal configuration of the visual display (animation delay and resizing of the panel).
The most
difficult and painstaking work was to add a bitmap of characters to the program.
Immediately I will explain that the parameter “E-TABLO HORIZ. POINTS "determines the number of points on the width of the electronic scoreboard.
')
Look at the resultUPD. Principle of operation.
There is an array (vector) of points.
There is a text streamer, which in the appropriate position turns on or turns off the light bulb. Streamer stores a bitmap of characters. A map is a vector of zeros or ones.
Each frame is a cycle in which all points are walked with the subsequent processing of their presence or absence on the board.