revert back to interpolated color palette and reduce iterations
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Steven Polley 2021-07-30 17:35:59 -06:00
parent 20dc1fcbd9
commit 60050187f8

View File

@ -24,7 +24,7 @@ import (
const (
Size = 512
//Iterations = (1<<16 - 1) / 256
Iterations = (1<<16 - 1) / 256
Iterations = (1<<16 - 1) / 128
)
var (
@ -51,26 +51,9 @@ func main() {
go computeThread()
}
//colorStep := float64(Iterations)
colorStep := float64(Iterations)
//colors = interpolateColors("Pride", colorStep)
originalColors := []color.RGBA{
color.RGBA{0xff, 0x00, 0x00, 0xff},
color.RGBA{0xff, 0x7f, 0x00, 0xff},
color.RGBA{0xff, 0xff, 0x00, 0xff},
color.RGBA{0x00, 0xff, 0x00, 0xff},
color.RGBA{0x00, 0x00, 0xff, 0xff},
color.RGBA{0x2e, 0x2b, 0x5f, 0xff},
color.RGBA{0x8b, 0x00, 0xff, 0xff},
}
colors = originalColors
for i := 0; len(colors) < Iterations; i++ {
fmt.Println(i)
for _, color := range originalColors {
colors = append(colors, color)
}
}
colors = interpolateColors("Hippi", colorStep)
log.Fatal(http.ListenAndServe(":6161", nil))
}