mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 01:12:03 +01:00
examples/set: Use color.RGBA
This commit is contained in:
parent
67ce6c57c4
commit
ea29637fda
@ -46,7 +46,7 @@ func update(screen *ebiten.Image) error {
|
|||||||
w, h := offscreen.Size()
|
w, h := offscreen.Size()
|
||||||
x := rand.Intn(w)
|
x := rand.Intn(w)
|
||||||
y := rand.Intn(h)
|
y := rand.Intn(h)
|
||||||
c := color.NRGBA{
|
c := color.RGBA{
|
||||||
byte(rand.Intn(256)),
|
byte(rand.Intn(256)),
|
||||||
byte(rand.Intn(256)),
|
byte(rand.Intn(256)),
|
||||||
byte(rand.Intn(256)),
|
byte(rand.Intn(256)),
|
||||||
|
Loading…
Reference in New Issue
Block a user