//You cannot create brushes. // currently the only way to get a brush is to // implement the CanvasPainter interface and pass it to // paint or setCanvasPainter of an MMII.Canvas object interface Brush { getWidth():int getHeight():int clear() moveTo(x,y:int) lineTo(x,y:int) //specified by its bounding rectangle ellipse(x,y,w,h:int) rectangle(x,y,w,h:int) text(x,y:int, s:string) // 0<=r,g,b,<=255 setPenColor(r,g,b:int) // the color that clear() uses to fill the canvas setBackgroundColor(r,g,b:int) // used for ellips and rectangle setFillColor(r,g,b:int) }