revert back to interpolated color palette and reduce iterations
This commit is contained in:
parent
20dc1fcbd9
commit
60050187f8
23
render.go
23
render.go
@ -24,7 +24,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
Size = 512
|
Size = 512
|
||||||
//Iterations = (1<<16 - 1) / 256
|
//Iterations = (1<<16 - 1) / 256
|
||||||
Iterations = (1<<16 - 1) / 256
|
Iterations = (1<<16 - 1) / 128
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -51,26 +51,9 @@ func main() {
|
|||||||
go computeThread()
|
go computeThread()
|
||||||
}
|
}
|
||||||
|
|
||||||
//colorStep := float64(Iterations)
|
colorStep := float64(Iterations)
|
||||||
|
|
||||||
//colors = interpolateColors("Pride", colorStep)
|
colors = interpolateColors("Hippi", 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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServe(":6161", nil))
|
log.Fatal(http.ListenAndServe(":6161", nil))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user