graphics: Allow a little margin for edge pixels

This commit is contained in:
Hajime Hoshi
2018-05-13 23:00:06 +09:00
parent a1dd7b39a3
commit d7d892f2d6
2 changed files with 8 additions and 8 deletions

View File

@@ -541,11 +541,11 @@ func TestImageEdge(t *testing.T) {
transparent := color.RGBA{0, 0, 0, 0}
angles := []float64{}
for a := 0; a < 360; a++ {
angles = append(angles, float64(a)/360*2*math.Pi)
for a := 0; a < 1440; a++ {
angles = append(angles, float64(a)/1440*2*math.Pi)
}
for a := 0; a < 256; a++ {
angles = append(angles, float64(a)/256*2*math.Pi)
for a := 0; a < 4096; a++ {
angles = append(angles, float64(a)/4096*2*math.Pi)
}
for _, f := range []Filter{FilterNearest, FilterLinear} {