op/paint: further clarify PaintOp documentation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-14 13:44:36 +02:00
parent 29c9b06dab
commit 31acd5451e
+4 -4
View File
@@ -36,11 +36,11 @@ type ColorOp struct {
Color color.RGBA
}
// PaintOp draws the current brush, respecting the
// clip path and transformation.
// PaintOp fills an area with the current brush, respecting the
// current clip path and transformation.
type PaintOp struct {
// The destination rectangle to paint. If necessary, the brush is resized to
// cover it.
// Rect is the destination area to paint. If necessary, the brush is
// scaled to cover the rectangle area.
Rect f32.Rectangle
}