Module canvas

Module canvas 

Source
Expand description

Provides the Canvas struct, which allows the screen to be manipulated, such as by drawing points, lines, rectangles, text, or textures to it.

Structs§

Canvas
This struct allows you to draw to the screen in various ways. It is a wrapper around:

Type Aliases§

SurfaceCanvas
A Canvas that internally renders to a Surface.
WindowCanvas
A Canvas that renders to a Window on the screen.