ebitenutil: remove whiteImage

This commit is contained in:
Hajime Hoshi 2023-03-01 15:23:19 +09:00
parent 7c0fbce0cf
commit e53118235b

View File

@ -15,22 +15,12 @@
package ebitenutil
import (
"image"
"image/color"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/vector"
)
var (
whiteImage = ebiten.NewImage(3, 3)
whiteSubImage = whiteImage.SubImage(image.Rect(1, 1, 2, 2)).(*ebiten.Image)
)
func init() {
whiteImage.Fill(color.White)
}
// DrawLine draws a line segment on the given destination dst.
//
// DrawLine is intended to be used mainly for debugging or prototyping purpose.