eu.joaocosta.minart.graphics

Members list

Concise view

Type members

Classlikes

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

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type
final class Color

Representation of a RGB Color.

Representation of a RGB Color.

Attributes

argb

this color packed as a 32 bit integer in ARGB.

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Color

Attributes

Companion:
class
Graph
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
Graph
Supertypes
trait AutoCloseable
trait Canvas
trait Surface
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
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

Graph
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
Graph
Supertypes
trait (Int, Int) => Color
class Object
trait Matchable
class Any
Self type
object Plane

Attributes

Companion:
trait
Graph
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.

Attributes

data

the raw data that backs this surface

Graph
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

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Canvas backed by a mutable surface.

Canvas backed by a mutable surface.

Attributes

Graph
Supertypes
trait AutoCloseable
trait Canvas
trait Surface
class Object
trait Matchable
class Any
final case class SurfaceView(plane: Plane, width: Int, height: Int) extends Surface

A view over a surface, stored as a plane limited by a width and height. Allows lazy operations to be applied over a surface.

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

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Surface
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type