Canvas

eu.joaocosta.minart.graphics.Canvas
See theCanvas companion trait
object Canvas

Attributes

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

Members list

Type members

Classlikes

enum Buffer

A system resource used by the Canvas.

A system resource used by the Canvas.

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Buffer

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Buffer.type
final case class Settings(width: Int, height: Int, scale: Option[Int], fullScreen: Boolean, clearColor: Color, title: String)

The canvas settings.

The canvas settings.

Value parameters

clearColor

The color to be used when the canvas is cleared

fullscreen

Whether the canvas should be rendered in a full screen window

height

The canvas height

scale

The canvas integer scaling factor. If None, it will automatically pick 1 for non-fullscreen and fill the screen on full screen

title

The title to use if this Canvas needs to create a window

width

The canvas width

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def create(settings: Settings)(using backend: DefaultBackend[Any, LowLevelCanvas]): Canvas

Returns a new Canvas for the default backend for the target platform.

Returns a new Canvas for the default backend for the target platform.

Attributes

Returns

Canvas using the default backend for the target platform