examples/lines: specify color values explicitly

This commit is contained in:
Hajime Hoshi 2023-02-14 19:14:38 +09:00
parent 10f022e129
commit cb61633b70

View File

@ -136,6 +136,10 @@ func (g *Game) drawLine(screen *ebiten.Image, region image.Rectangle, cap vector
for i := range vs {
vs[i].SrcX = 1
vs[i].SrcY = 1
vs[i].ColorR = 1
vs[i].ColorG = 1
vs[i].ColorB = 1
vs[i].ColorA = 1
}
screen.DrawTriangles(vs, is, whiteSubImage, &ebiten.DrawTrianglesOptions{
AntiAlias: g.aa,