examples/mandelbrot: Adjust colors

This commit is contained in:
Hajime Hoshi 2017-12-19 03:10:04 +09:00
parent f072e8f1c5
commit a8914ff245

View File

@ -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)
}
}