add note to doc

This commit is contained in:
faiface 2017-01-25 19:53:15 +01:00
parent 2890f8b4ae
commit 7f5a21cd3c
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ func (p *Polygon) Color() NRGBA {
// count.
//
// This method is more effective, than creating a new Polygon with the given points.
//
// However, it is less expensive than using a transform on a Target.
func (p *Polygon) SetPoints(points ...Vec) {
p.data.resize(len(points))
for i, pt := range points {