Changes the settings applied to this canvas.
Clears resources, such as the backbuffer and keyboard inputs.
Destroys the canvas window.
Destroys the canvas window.
Calling any operation on this canvas after calling destroy has an undefined behavior.
Returns the backbuffer.
Gets the color from the backbuffer.
Gets the color from the backbuffer.
This operation can be perfomance intensive, so it might be worthwile
to either use getBackbuffer
to fetch multiple pixels at the same time or
to implement this operation on the application code.
pixel x position
pixel y position
pixel color
Gets the current keyboard input.
Gets the current pointer input.
Creates the canvas window.
Creates the canvas window.
Rendering operations can only be called after calling this.
canvas object linked to the created window
Checks if the window is created or if it has been destroyed
Checks if the window is created or if it has been destroyed
Puts a pixel in the back buffer with a certain color.
Flips buffers and redraws the screen.
The settings applied to this canvas.
The settings applied to this canvas.
A low level Canvas implementation that outputs the image in the PPM format to the stdout. This canvas doesn't support fetching the keyboard input.