Graphics
- class i75.graphics.Graphics(display_type: ~picographics.DisplayType, rotate: int | None = 0, panel_type: ~hub75.PanelType = <hub75.PanelType object>, stb_invert: bool = False, color_order: ~hub75.ColorOrder = <hub75.ColorOrder object>)
This class provides functionality to render simple graphics to the screen.
After drawing anything you must call
update()to display it.- clear() None
Clear the screen to the current set pen colour.
- get_bounds() Tuple[int, int]
Returns the size of the screen.
- Returns:
The screen size as
(width, height)
- pixel(x: int, y: int) None
Set the pixel
(x, y)to the current pen colour.- Parameters:
x – The x coordinate.
y – The y coordinate.
- update() None
Updates the screen with the current buffer contents.