improve docstrings of draw2dpdf/gc.go

This commit is contained in:
Stani 2015-07-08 00:48:15 +02:00
parent dbf591ab97
commit 62e23c1693

View file

@ -168,12 +168,12 @@ func (gc *GraphicContext) StrokeStringAt(text string, x, y float64) (cursor floa
return gc.CreateStringPath(text, x, y) return gc.CreateStringPath(text, x, y)
} }
// Stroke strokes the paths // Stroke strokes the paths with the color specified by SetStrokeColor
func (gc *GraphicContext) Stroke(paths ...*draw2d.PathStorage) { func (gc *GraphicContext) Stroke(paths ...*draw2d.PathStorage) {
gc.draw("D", paths...) gc.draw("D", paths...)
} }
// Fill strokes the paths // Fill fills the paths with the color specified by SetFillColor
func (gc *GraphicContext) Fill(paths ...*draw2d.PathStorage) { func (gc *GraphicContext) Fill(paths ...*draw2d.PathStorage) {
gc.draw("F", paths...) gc.draw("F", paths...)
} }