class

Drawille::Canvas

Inherits Reference / Object

Constructors

new(terminal_lines : Int32 = TERMINAL_LINES, terminal_columns : Int32 = TERMINAL_COLUMNS)

Instance methods

animate(fps = 20, &)
clear
get(x : Int, y : Int) : Bool
get_pos(x : Int, y : Int) : Int
render
set(x : Int, y : Int, color : RGB = WHITE)
terminal_columns
terminal_columns=(terminal_columns : Int32)
terminal_lines
terminal_lines=(terminal_lines : Int32)
toggle(x : Int, y : Int)
unset(x : Int, y : Int)
viewport_area
viewport_area=(viewport_area : Int32)
viewport_height
viewport_height=(viewport_height : Int32)
viewport_width
viewport_width=(viewport_width : Int32)