import { Canvas } from "https://deno.land/x/sdl2@0.9.0/mod.ts";
SDL2 canvas.
Constructors
Methods
Clear the current rendering target with the drawing color.
Copy a portion of the texture to the current rendering target.
Draw a line on the current rendering target.
Draw a series of connected lines on the current rendering target.
Draw a point on the current rendering target.
Draw multiple points on the current rendering target.
Draw a rectangle on the current rendering target.
Draw some number of rectangles on the current rendering target.
Fill a rectangle on the current rendering target with the drawing color.
Fill some number of rectangles on the current rendering target with the drawing color.
Create a font from a file, using a specified point size.
Update the screen with any rendering performed since the previous call.
Set the color used for drawing operations (Rect, Line and Clear).
TextureCreator is a helper class for creating textures.