eu.joaocosta.minart.graphics

Members list

Type members

Classlikes

trait BlendMode

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 Object
trait Matchable
class Any
Known subtypes
object AlphaAdd.type
class AlphaTest
class ColorMask
object Copy.type
object BlendMode

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
BlendMode.type
trait Canvas extends MutableSurface

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
trait Surface
class Object
trait Matchable
class Any
Known subtypes
object Canvas

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type
object Color

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Color.type

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 AutoCloseable
trait Canvas
trait Surface
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Matrix(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double)

Affine Transformation matrix of the form:

Affine Transformation matrix of the form:

[a b c]
[d e f]
[0 0 1]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait MutableSurface extends Surface

A surface that can be drawn on using mutable operations.

A surface that can be drawn on using mutable operations.

Attributes

Supertypes
trait Surface
class Object
trait Matchable
class Any
Known subtypes
trait Plane extends (Int, Int) => Color

A procedurally generated infinite surface.

A procedurally generated infinite surface.

Can be clipped to create a surface.

Attributes

Companion
object
Supertypes
trait (Int, Int) => Color
class Object
trait Matchable
class Any
Self type
object Plane

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Plane.type
final class RamSurface(val dataBuffer: Vector[Array[Color]]) extends MutableSurface

A mutable surface stored in RAM.

A mutable surface stored in RAM.

Value parameters

data

the raw data that backs this surface

Attributes

Supertypes
trait Surface
class Object
trait Matchable
class Any
trait Surface

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 Object
trait Matchable
class Any
Known subtypes
trait Canvas
class RamSurface
trait SurfaceView
Show all

Canvas backed by a mutable surface.

Canvas backed by a mutable surface.

Attributes

Supertypes
trait AutoCloseable
trait Canvas
trait Surface
class Object
trait Matchable
class Any
Show all
sealed trait SurfaceView extends Surface

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
trait Surface
class Object
trait Matchable
class Any
object SurfaceView

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

opaque type Color

Representation of a RGB Color.

Representation of a RGB Color.

Attributes