Tui::Digits
Inherits Tui::Widget / Tui::Reactive / Reference / Object
Constants
DIGIT_HEIGHT = 5
DIGIT_WIDTH = 3
PATTERNS = {'0' => ["┌─┐", "│ │", "│ │", "│ │", "└─┘"], '1' => [" ┐", " │", " │", " │", " ╵"], '2' => ["┌─┐", " │", "┌─┘", "│ ", "└─┘"], '3' => ["┌─┐", " │", " ─┤", " │", "└─┘"], '4' => ["╷ ╷", "│ │", "└─┤", " │", " ╵"], '5' => ["┌─┐", "│ ", "└─┐", " │", "└─┘"], '6' => ["┌─┐", "│ ", "├─┐", "│ │", "└─┘"], '7' => ["┌─┐", " │", " │", " │", " ╵"], '8' => ["┌─┐", "│ │", "├─┤", "│ │", "└─┘"], '9' => ["┌─┐", "│ │", "└─┤", " │", "└─┘"], '-' => [" ", " ", "───", " ", " "], '+' => [" ", " │ ", "─┼─", " │ ", " "], '.' => [" ", " ", " ", " ", " ● "], ':' => [" ", " ● ", " ", " ● ", " "], ' ' => [" ", " ", " ", " ", " "]}
3x5 digit patterns (each digit is 3 chars wide, 5 lines tall)
SPACING = 1
Constructors
Instance methods
dim_style
Sourcedim_style=(dim_style : Style)
Sourcemin_size
Sourcestyle
Sourcestyle=(style : Style)
Sourcevalue
Source