clarify doc

This commit is contained in:
faiface 2017-03-14 21:59:31 +01:00
parent 07ecae706d
commit 1e22436612
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ func (imd *IMDraw) SetColorMask(color color.Color) {
// FillConvexPolygon takes all points Pushed into the IM's queue and fills the convex polygon formed
// by them.
//
// The polygon does not need to be exactly convex. The way it's drawn is that for each two adjacent
// points, a triangle is constructed from those two points and the first Pushed point. You can use
// this property to draw specific concave graphs.
func (imd *IMDraw) FillConvexPolygon() {
points := imd.points
imd.points = nil