add clarifying comment

This commit is contained in:
faiface 2017-02-28 18:36:43 +01:00
parent 1f91ae62d2
commit 0644103ba1
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ func PictureDataFromPicture(pic Picture) PictureData {
if pic, ok := pic.(PictureColor); ok {
for y := math.Floor(bounds.Pos.Y()); y < bounds.Pos.Y()+bounds.Size.Y(); y++ {
for x := math.Floor(bounds.Pos.X()); x < bounds.Pos.X()+bounds.Size.X(); x++ {
// this together with the Floor is a trick to get all of the pixels
at := V(
math.Max(x, bounds.Pos.X()),
math.Max(y, bounds.Pos.Y()),