module UnicodePlot::BorderPrinter
Public Instance Methods
print_border_bottom(out, padding, length, border=:solid, color: :light_black)
click to toggle source
# File lib/unicode_plot/renderer.rb, line 56 def print_border_bottom(out, padding, length, border=:solid, color: :light_black) return if border == :none b = BORDER_MAP[border] print_styled(out, padding, b[:bl], b[:b] * length, b[:br], color: color) end
print_border_top(out, padding, length, border=:solid, color: :light_black)
click to toggle source
# File lib/unicode_plot/renderer.rb, line 50 def print_border_top(out, padding, length, border=:solid, color: :light_black) return if border == :none b = BORDER_MAP[border] print_styled(out, padding, b[:tl], b[:t] * length, b[:tr], color: color) end