class Termbox::Cell
- Termbox::Cell
- Termbox::Element
- Reference
- Object
Overview
A cell is a coordinate with content and foreground/background colors
Defined in:
termbox/cell.crConstructors
-
.new(char : Char, position : Position, foreground : Int32, background : Int32)
Make a cell with a specified foreground and background
-
.new(char : Char, position : Position)
Make a cell with default colors
Instance Method Summary
- #background : Int32
- #char : Char
- #foreground : Int32
-
#new_transform(x : Int32, y : Int32)
Make a new cell with a position transformed by x and y
- #position : Termbox::Position
-
#render : Array(Cell)
Render as list of cells
Instance methods inherited from class Termbox::Element
render : Array(Cell)
render
Constructor Detail
Make a cell with a specified foreground and background