AsciiBarCharter
Constants
BAR_CHARS = ['▿', '_', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '▴']
BAR_CHARS_ALT = ['■', '□', '▫', '☾', '◵', '◉', '◷', '☽', '▹', '▷', '▶']
BAR_COLORS = [:blue, :light_blue, :cyan, :light_cyan, :green, :light_green, :yellow, :light_magenta, :magenta, :light_red, :red]
BAR_COLORS_ALT = [:magenta, :red, :light_red, :light_yellow, :yellow, :black, :cyan, :light_cyan, :light_green, :green, :blue]
BKGD_COLOR = :white
VERSION = {{ (`shards version \"/tmp/tmp.OEifcB/src/src\"`).chomp.stringify }}
Constructors
Class methods
permutations(min = -1.0, max = 1.0, precision = 3.to_i8, bar_chars = AsciiBarCharter::BAR_CHARS, bar_colors = AsciiBarCharter::BAR_COLORS, bkgd_color = AsciiBarCharter::BKGD_COLOR, in_bw = false, inverted_chars = false, inverted_colors = false)
Sourceshow_examples
Sourceshow_examples_with_params
SourceInstance methods
bar(single_data, as_bar = true)
Sourcebar_chars
Sourcebar_colors
TODO: allow usage of colors like Colorize::ColorRGB.new(0, 255, 255)
i.e.: getter bar_colors : Array(Symbol | Colorize::ColorRGB)
bar_prefixed_with_number(single_data)
Sourcebar_step_qty
Sourcebkgd_color
Sourcein_bw
Sourceinverted_chars
Sourceinverted_colors
Sourcemax
Sourcemin
Sourcemin_max_delta
Sourceplot(data, prefixed = false)
Sourceprecision
Sourcetoggle_bw
Sourcevalidate!
Source