From 0644103ba158d45d3170687aa46b11175edbd760 Mon Sep 17 00:00:00 2001 From: faiface Date: Tue, 28 Feb 2017 18:36:43 +0100 Subject: [PATCH] add clarifying comment --- data.go | 1 + 1 file changed, 1 insertion(+) diff --git a/data.go b/data.go index 9ce26df..035e80d 100644 --- a/data.go +++ b/data.go @@ -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()),