diff --git a/render.go b/render.go index f84db1e..11f3824 100644 --- a/render.go +++ b/render.go @@ -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)) }