import { Canvas } from "https://deno.land/x/tui@1.3.4/src/canvas.ts";
Canvas implementation that can be drawn onto and then rendered on terminal screen
Constructors
Properties
Methods
Render value starting on column and row on canvas
When rectangle is given: If particular part of the rendering doesn't fit within rectangle boundaries then it's not drawn
Runs a loop in which it checks whether frameBuffer has changed (anything new has been drawn).
If so, run renderFrame()
with current frame buffer and in the way yield and emit proper events.
On each iteration it sleeps for adjusted refreshRate
time.
Checks for individual row and column changes in canvas, then renders just the changes. In the way yield and emit proper events.
Change size
property, then clear frameBuffer
and previousFrameBuffer
to force re-render all of the canvas
If size
parameter matches canvas's size
property then nothing happens