term.gfx.canvas.new_canvas

term.gfx.canvas

new_canvas(config) -> canvas

Create a new pixel canvas for drawing and displaying images

Returns a canvas object with drawing and display methods.

Config fields:

The canvas is pre-filled with colors.bg on creation.