Canvas

final case class Canvas(target: Node, frame: Frame, background: Option[Color], redrawQueue: Queue[IO, Int], mouseClickQueue: Queue[IO, Point], mouseMoveQueue: Queue[IO, Point])(implicit runtime: IORuntime)
Companion:
object
Source:
Canvas.scala
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def render[A](picture: Picture[A]): IO[A]
def renderChild(svgRoot: Node, nodes: Node): Unit
def svgRoot(bb: BoundingBox): Node

Get the root node, creating one if needed.

Get the root node, creating one if needed.

Source:
Canvas.scala
def textBoundingBox(text: String, font: Font): (BoundingBox, Rect)

Inherited methods

Inherited from:
Product

Concrete fields

val mouseClick: Stream[IO, Point]
val mouseMove: Stream[IO, Point]
val redraw: Stream[IO, Int]