examples/lines: specify alpha values explicitly

This commit is contained in:
Hajime Hoshi 2023-02-14 19:12:26 +09:00
parent 397da70815
commit 10f022e129

View File

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