diff --git a/examples/lines/main.go b/examples/lines/main.go index 975ec0f09..b4f767c25 100644 --- a/examples/lines/main.go +++ b/examples/lines/main.go @@ -27,18 +27,6 @@ import ( "github.com/hajimehoshi/ebiten/v2/vector" ) -var ( - whiteImage = ebiten.NewImage(3, 3) - - // whiteSubImage is an internal sub image of whiteImage. - // Use whiteSubImage at DrawTriangles instead of whiteImage in order to avoid bleeding edges. - whiteSubImage = whiteImage.SubImage(image.Rect(1, 1, 2, 2)).(*ebiten.Image) -) - -func init() { - whiteImage.Fill(color.White) -} - const ( screenWidth = 640 screenHeight = 480 @@ -47,9 +35,6 @@ const ( type Game struct { counter int - vertices []ebiten.Vertex - indices []uint16 - aa bool showCenter bool }