clubsandwich.draw¶
Assorted functions that draw shapes to the terminal. Right now it’s just lines and rectangles.
-
clubsandwich.draw.draw_line_horz(origin, length, ctx=<clubsandwich.blt.nice_terminal.NiceTerminal object>, style=’single’)¶ Parameters: - origin (Point) –
- length (int) –
- ctx (BearLibTerminalContext) –
- style (str) – Either
'single'or'double'
Draw a horizontal line.
-
clubsandwich.draw.draw_line_vert(origin, length, ctx=<clubsandwich.blt.nice_terminal.NiceTerminal object>, style=’single’)¶ Parameters: - origin (Point) –
- length (int) –
- ctx (BearLibTerminalContext) –
- style (str) – Either
'single'or'double'
Draw a vertical line.
-
clubsandwich.draw.draw_rect(rect, ctx=<clubsandwich.blt.nice_terminal.NiceTerminal object>, style=’single’)¶ Parameters: - rect (Rect) –
- ctx (BearLibTerminalContext) –
- style (str) – Either
'single'or'double'
Draw a rectangle.