mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
examples/lines: specify alpha values explicitly
This commit is contained in:
parent
397da70815
commit
10f022e129
@ -153,6 +153,7 @@ func (g *Game) drawLine(screen *ebiten.Image, region image.Rectangle, cap vector
|
||||
vs[i].ColorR = 1
|
||||
vs[i].ColorG = 0
|
||||
vs[i].ColorB = 0
|
||||
vs[i].ColorA = 1
|
||||
}
|
||||
screen.DrawTriangles(vs, is, whiteSubImage, &ebiten.DrawTrianglesOptions{
|
||||
AntiAlias: g.aa,
|
||||
|
Loading…
Reference in New Issue
Block a user