eu.joaocosta.minart.graphics
Members list
Type members
Classlikes
Blend strategy to be used to combine two colors
Blend strategy to be used to combine two colors
Note that while this trait is unsealed, backends can provide opimized implementations for the default blend modes. As such, those should always be prefered to custom ones.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Window with a canvas that can be painted.
Window with a canvas that can be painted.
The Canvas provides access to both rendering and input functionallity, as the input must be tied to a window
A canvas represents a window with a width * height
pixels. There's also a scale
variable that controls the integer scaling and a clearColor
that is applied to the whole canvas when it's cleared.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait LowLevelCanvastrait SurfaceBackedCanvas
A low-level version of a canvas with init and close methods.
A low-level version of a canvas with init and close methods.
Attributes
- Companion
- object
- Supertypes
-
trait LowLevelSubsystem[Settings]trait AutoCloseabletrait Canvastrait MutableSurfacetrait Surfaceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait SurfaceBackedCanvas
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LowLevelCanvas.type
A surface that can be drawn on using mutable operations.
A surface that can be drawn on using mutable operations.
Attributes
- Supertypes
- Known subtypes
A mutable surface stored in RAM.
A mutable surface stored in RAM.
Value parameters
- data
-
the raw data that backs this surface
Attributes
- Supertypes
A Surface is an object that contains a set of pixels.
A Surface is an object that contains a set of pixels.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait MutableSurfacetrait Canvastrait LowLevelCanvastrait SurfaceBackedCanvasclass RamSurfacetrait SurfaceViewShow all
Canvas backed by a mutable surface.
Canvas backed by a mutable surface.
Attributes
- Supertypes
-
trait LowLevelCanvastrait LowLevelSubsystem[Settings]trait AutoCloseabletrait Canvastrait MutableSurfacetrait Surfaceclass Objecttrait Matchableclass AnyShow all
A view over a surface. Allows lazy operations to be applied over a surface.
A view over a surface. 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
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SurfaceView.type
Types
Representation of a RGB Color.
Representation of a RGB Color.