Drawable

trait Drawable[A]

Base type class for extending a type with draw capabilities.

Type parameters:
A

the type to extend

class Object
trait Matchable
class Any

Type members

Types

type Graphic

The graphic type used to draw.

The graphic type used to draw.

Extensions

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