snakia.core.tui.canvas
Classes
|
A canvas is a 2D array of characters. |
|
- class snakia.core.tui.canvas.Canvas(width, height, default_value=CanvasChar(' '))[source]
Bases:
objectA canvas is a 2D array of characters.
- get_column(x, /)[source]
Get the column at the given position.
- Return type:
Iterable[CanvasChar]
- get_row(y, /)[source]
Get the row at the given position.
- Return type:
Iterable[CanvasChar]
-
height:
Final[int]
- property total: int
-
width:
Final[int]