module

Obsctl::TUI::Anim

Constants

ASCII_LEVELS = ['.', '-', '=', '+', '*', '#']
BARS = ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█']

Instance methods

blend(from : CryTUI::Color, to : CryTUI::Color, amount : Number) : CryTUI::Color
Source
gradient_line(text : String, from : CryTUI::Color, to : CryTUI::Color, frame : UInt64, bold = false, alignment = CryTUI::Alignment::Left) : CryTUI::Line
Source
spans(lines : Array(CryTUI::Line), row : Int32 = 0) : Array(CryTUI::Span)

Splices one row of a spinner into a line the caller is already building. Spinners render themselves into a rectangle, but most of the places obsctl wants one are mid-sentence rather than in a pane of their own.

Source
sparkline(values : Enumerable(Number), width : Int32) : String
Source
sparkline_ascii(values : Enumerable(Number), width : Int32) : String
Source