diff --git a/canvas/canvas.go b/canvas/canvas.go index 0866592..691c0bb 100644 --- a/canvas/canvas.go +++ b/canvas/canvas.go @@ -32,8 +32,11 @@ type StrokeAlign int; const ( // have multiple pens associated with it, each maintaining their own drawing // context. type Pen interface { - // Draw draws a path - Draw (points ...image.Point) + // Rectangle draws a rectangle + Rectangle (image.Rectangle) + + // Path draws a path + Path (points ...image.Point) Closed (bool) // if the path is closed Cap (Cap) // line cap stype