This commit is contained in:
parent
884f2f0f80
commit
67a301284e
@ -361,4 +361,13 @@ var ColorPalettes = []ColorMap{
|
|||||||
Color{Color: color.RGBA{0x2a, 0xa1, 0x98, 0xff}},
|
Color{Color: color.RGBA{0x2a, 0xa1, 0x98, 0xff}},
|
||||||
Color{Color: color.RGBA{0x85, 0x99, 0x00, 0xff}},
|
Color{Color: color.RGBA{0x85, 0x99, 0x00, 0xff}},
|
||||||
}},
|
}},
|
||||||
|
{"Pride", []Color{
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0xff, 0x00, 0x00, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0xff, 0x7f, 0x00, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0xff, 0xff, 0x00, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0x00, 0xff, 0x00, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0x00, 0x00, 0xff, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0x2e, 0x2b, 0x5f, 0xff}},
|
||||||
|
Color{Step: 0.0, Color: color.RGBA{0x8b, 0x00, 0xff, 0xff}},
|
||||||
|
}},
|
||||||
}
|
}
|
||||||
|
24
render.go
24
render.go
@ -24,7 +24,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
Size = 128
|
Size = 128
|
||||||
//Iterations = (1<<16 - 1) / 256
|
//Iterations = (1<<16 - 1) / 256
|
||||||
Iterations = (1<<16 - 1) / 64
|
Iterations = (1<<16 - 1) / 256
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -51,8 +51,26 @@ func main() {
|
|||||||
go computeThread()
|
go computeThread()
|
||||||
}
|
}
|
||||||
|
|
||||||
colorStep := float64(Iterations)
|
//colorStep := float64(Iterations)
|
||||||
colors = interpolateColors("Hippi", colorStep)
|
|
||||||
|
//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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServe(":6161", nil))
|
log.Fatal(http.ListenAndServe(":6161", nil))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user