Added a rectangle method to Canvas
This commit is contained in:
parent
bb07363c89
commit
48fe7ef5e1
|
@ -32,8 +32,11 @@ type StrokeAlign int; const (
|
||||||
// have multiple pens associated with it, each maintaining their own drawing
|
// have multiple pens associated with it, each maintaining their own drawing
|
||||||
// context.
|
// context.
|
||||||
type Pen interface {
|
type Pen interface {
|
||||||
// Draw draws a path
|
// Rectangle draws a rectangle
|
||||||
Draw (points ...image.Point)
|
Rectangle (image.Rectangle)
|
||||||
|
|
||||||
|
// Path draws a path
|
||||||
|
Path (points ...image.Point)
|
||||||
|
|
||||||
Closed (bool) // if the path is closed
|
Closed (bool) // if the path is closed
|
||||||
Cap (Cap) // line cap stype
|
Cap (Cap) // line cap stype
|
||||||
|
|
Loading…
Reference in New Issue