mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
examples/mandelbrot: Adjust colors
This commit is contained in:
parent
f072e8f1c5
commit
a8914ff245
@ -39,8 +39,7 @@ func init() {
|
||||
offscreen, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterNearest)
|
||||
offscreenPix = make([]byte, screenWidth*screenHeight*4)
|
||||
for i := range palette {
|
||||
c := byte(math.Sqrt(float64(i)/float64(len(palette))) * 0xff)
|
||||
palette[i] = c
|
||||
palette[i] = byte(math.Sqrt(float64(i)/float64(len(palette))) * 0x80)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user