module Obsctl::TUI::Anim

Extended Modules

Defined in:

obsctl/tui/anim.cr

Constant Summary

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

Instance Method Summary

Instance Method Detail

def blend(from : CryTUI::Color, to : CryTUI::Color, amount : Number) : CryTUI::Color #

[View source]
def gradient_line(text : String, from : CryTUI::Color, to : CryTUI::Color, frame : UInt64, bold = false, alignment = CryTUI::Alignment::Left) : CryTUI::Line #

[View source]
def sparkline(values : Enumerable(Number), width : Int32) : String #

[View source]
def sparkline_ascii(values : Enumerable(Number), width : Int32) : String #

[View source]