mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-23 16:03:16 +08:00
graphics: Allow a little margin for edge pixels
This commit is contained in:
@@ -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} {
|
||||
|
Reference in New Issue
Block a user