Store an unsafe canvas operation in a CanvasIO.
Clears resources, such as the backbuffer and keyboard inputs.
Clears resources, such as the backbuffer and keyboard inputs.
set of Canvas.Resources to be cleared
Applies an operation to each element of a Iterable[A]
and discards the result.
Returns the backbuffer.
Returns the backbuffer. This operation can be perfomance intensive, so it might be worthwile to implement this operation on the application code.
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
Gets the current keyboard input.
Gets the current pointer input.
Fetches the canvas settings.
An operation that does nothing *
Lifts a value into a CanvasIO.
Puts a pixel in the back buffer with a certain color.
Puts a pixel in the back buffer with a certain color.
pixel x position
pixel y position
Color
to apply to the pixel
Flips buffers and redraws the screen.
Converts an Iterable[CanvasIO[A]]
into a CanvasIO[List[A]]
.
Converts an Iterable[CanvasIO[A]]
into a CanvasIO[Unit]
.
Converts an Iterable[A]
into a CanvasIO[List[B]]
by applying an operation to each element.