Wow that's a lot of iterations

This commit is contained in:
Steven Polley 2018-08-21 21:29:52 -06:00
parent d6312c9c0f
commit 637d93241c

View File

@ -18,7 +18,7 @@ import (
const (
Size = 128
Iterations = (1<<16 - 1) / 128
Iterations = 1<<16 - 1
)
var (
@ -47,7 +47,7 @@ func main() {
colorStep := float64(Iterations)
// colors = interpolateColors("Plan9", colorStep)
colors = interpolateColors("Vivid", colorStep)
colors = interpolateColors("Solarized", colorStep)
log.Fatal(http.ListenAndServe(":6161", nil))
}
@ -166,7 +166,6 @@ func renderTile(w http.ResponseWriter, r *http.Request) {
queue <- pixel{img, x, y, tileX - int64(1<<tileZoom-1) - 1, tileY, uint16(tileZoom), &wg}
}
}
wg.Wait()
w.Header().Set("Content-Type", "image/png")
png.Encode(w, img)