DrawableJS

trait DrawableJS[A] extends Drawable[A]

JS-based Drawable type class for extending a type with draw capabilities.

Type parameters:
A

the type to extend

trait Drawable[A]
class Object
trait Matchable
class Any

Type members

Types

override type Graphic = CanvasRenderingContext2D

Extensions

Inherited extensions

extension (elem: A)
def draw(g: Graphic, scale: Int): Unit

Method to draw the element.

Method to draw the element.

Value parameters:
g:

the graphics needed to draw

scale:

the scale factor to apply

Inherited from:
Drawable