Canvas

object Canvas
Companion:
class
class Object
trait Matchable
class Any
Canvas.type

Type members

Classlikes

object Buffer
Companion:
class
sealed trait Buffer

A system resource used by the Canvas.

A system resource used by the Canvas.

Companion:
object
case class Settings(width: Int, height: Int, scale: 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

title

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

width

The canvas width

Value members

Concrete methods

def create(settings: Settings)(implicit 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.

Returns:

Canvas using the default backend for the target platform