flexible-elements-were-a-mistake #11
@ -68,7 +68,7 @@ func StrokeEllipse (
|
|||||||
},
|
},
|
||||||
radii: image.Pt(drawBounds.Dx() / 2, drawBounds.Dy() / 2),
|
radii: image.Pt(drawBounds.Dx() / 2, drawBounds.Dy() / 2),
|
||||||
}
|
}
|
||||||
context.center = bounds.Min.Add(context.radii)
|
context.center = drawBounds.Min.Add(context.radii)
|
||||||
context.plotEllipse()
|
context.plotEllipse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ func StrokeRectangle (
|
|||||||
if insetBounds.Empty() {
|
if insetBounds.Empty() {
|
||||||
return FillRectangle(destination, source, bounds)
|
return FillRectangle(destination, source, bounds)
|
||||||
}
|
}
|
||||||
return FillRectangleShatter(destination, source, insetBounds)
|
return FillRectangleShatter(destination, source, bounds, insetBounds)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FillRectangleShatter is like FillRectangle, but it does not draw in areas
|
// FillRectangleShatter is like FillRectangle, but it does not draw in areas
|
||||||
|
Reference in New Issue
Block a user