module

CryTUI::Widgets::Braille

One braille character carries a 2x4 dot matrix. MAP[row % 4][col % 2] is the bit a dot lights, and the code point is BASE plus the resulting byte -- which is why every ring spinner rasterises into a dot grid four times taller and twice wider than the cells it finally occupies.

Constants

BASE = 10240
MAP = [[0_u8, 3_u8], [1_u8, 4_u8], [2_u8, 5_u8], [6_u8, 7_u8]]

Class methods

char(byte : UInt8) : String
Source