mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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