Renderer

The Renderer typeclass describes a data type that can create an area to render a picture (a Canvas) from a description (a Frame) and render a picture to that Canvas.

Companion:
object
Source:
Renderer.scala
class Object
trait Matchable
class Any
trait DefaultRenderer[Alg, Frame, Canvas]
object Java2dRenderer.type

Value members

Abstract methods

def canvas(description: Frame): IO[Canvas]

Construct a Canvas from a description.

Construct a Canvas from a description.

Source:
Renderer.scala
def render[A](canvas: Canvas)(picture: Picture[Alg, A]): IO[A]

Render a picture to a Canvas.

Render a picture to a Canvas.

Source:
Renderer.scala