From 60050187f8d4c05a2105dbb898c696c31c674f5e Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 30 Jul 2021 17:35:59 -0600 Subject: [PATCH] revert back to interpolated color palette and reduce iterations --- render.go | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) 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)) }