Window with a canvas that can be painted.
Abstraction that provides an init
operation to create a new canvas.
Abstraction that provides an init
operation to create a new canvas.
This is helpful to deal with the fact that creating a new canvas is a side-effectful operation.
RGB Color
A low-level version of a canvas that provides its own canvas manager.
A surface that can be drawn on using mutable operations.
A mutable surface stored in RAM.
Render loop that keeps an internal state that is passed to every iteration.
Render loop that keeps an internal state that is passed to every iteration.
State
A Surface is an object that contains a set of pixels.
Canvas backed by a mutable surface.
A view over a surface, stored as a plane limited by a width and height.
A view over a surface, stored as a plane limited by a width and height. Allows lazy operations to be applied over a surface.
This can have a performance impact. However, a new RAM surface with the operations already applied can be constructed using toRamSurface
A render loop that takes a side-effectful renderFrame operation.
Window with a canvas that can be painted.
The Canvas is the main concept behind minart, providing access to both rendering and input functionallity.
A canvas represents a window with a
width * height
pixels. There's also ascale
variable that controls the integer scaling and aclearColor
that is applied to the whole canvas when it's cleared.