[bugfix]Recursive calls in canve; add more color schemas
This commit is contained in:
parent
64cce3faa5
commit
f9a8983f78
4 changed files with 80 additions and 542 deletions
|
@ -32,8 +32,8 @@ func (cm *circleMove) Generative(c *generativeart.Canva) {
|
||||||
theta := common.Remap(j, 0, np, 0, math.Pi*2)
|
theta := common.Remap(j, 0, np, 0, math.Pi*2)
|
||||||
cx := float64(i)*3 - 200.0
|
cx := float64(i)*3 - 200.0
|
||||||
cy := float64(c.Height())/2 + math.Sin(float64(i)/50)*float64(c.Height())/12.0
|
cy := float64(c.Height())/2 + math.Sin(float64(i)/50)*float64(c.Height())/12.0
|
||||||
xx := math.Cos(theta+cx/10)*float64(c.Height())/6.0
|
xx := math.Cos(theta+cx/10) * float64(c.Height()) / 6.0
|
||||||
yy := math.Sin(theta+cx/10)*float64(c.Height())/6.0
|
yy := math.Sin(theta+cx/10) * float64(c.Height()) / 6.0
|
||||||
p := common.NewVector(xx, yy)
|
p := common.NewVector(xx, yy)
|
||||||
xx = (xx + cx) / 150
|
xx = (xx + cx) / 150
|
||||||
yy = (yy + cy) / 150
|
yy = (yy + cy) / 150
|
||||||
|
|
|
@ -24,7 +24,7 @@ func (cl *contourLine) Generative(c *generativeart.Canva) {
|
||||||
ctex := gg.NewContextForRGBA(c.Img())
|
ctex := gg.NewContextForRGBA(c.Img())
|
||||||
noise := common.NewPerlinNoise()
|
noise := common.NewPerlinNoise()
|
||||||
for i := 0; i < cl.lineNum; i++ {
|
for i := 0; i < cl.lineNum; i++ {
|
||||||
cl := c.Opts().ColorSchema()[rand.Intn(len(c.Opts().ColorSchema()))]
|
cls := c.Opts().ColorSchema()[rand.Intn(len(c.Opts().ColorSchema()))]
|
||||||
x := rand.Float64() * float64(c.Width())
|
x := rand.Float64() * float64(c.Width())
|
||||||
y := rand.Float64() * float64(c.Height())
|
y := rand.Float64() * float64(c.Height())
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ func (cl *contourLine) Generative(c *generativeart.Canva) {
|
||||||
x += math.Cos(theta) * 0.4
|
x += math.Cos(theta) * 0.4
|
||||||
y += math.Sin(theta) * 0.4
|
y += math.Sin(theta) * 0.4
|
||||||
|
|
||||||
ctex.SetColor(cl)
|
ctex.SetColor(cls)
|
||||||
ctex.DrawEllipse(x, y, 2, 2)
|
ctex.DrawEllipse(x, y, 2, 2)
|
||||||
ctex.Fill()
|
ctex.Fill()
|
||||||
|
|
||||||
|
|
606
common/color.go
606
common/color.go
|
@ -3,26 +3,26 @@ package common
|
||||||
import "image/color"
|
import "image/color"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
MistyRose = color.RGBA{0xFF, 0xE4, 0xE1, 0xFF}
|
MistyRose = color.RGBA{R: 0xFF, G: 0xE4, B: 0xE1, A: 0xFF}
|
||||||
DarkSalmon = color.RGBA{0xE9, 0x96, 0x7A, 0xFF}
|
DarkSalmon = color.RGBA{R: 0xE9, G: 0x96, B: 0x7A, A: 0xFF}
|
||||||
Tan = color.RGBA{0xD2, 0xB4, 0x8C, 0xFF}
|
Tan = color.RGBA{R: 0xD2, G: 0xB4, B: 0x8C, A: 0xFF}
|
||||||
Bisque = color.RGBA{0xFF, 0xE4, 0xC4, 0xFF}
|
Bisque = color.RGBA{R: 0xFF, G: 0xE4, B: 0xC4, A: 0xFF}
|
||||||
Mintcream = color.RGBA{0xF5, 0xFF, 0xFA, 0xFF}
|
Mintcream = color.RGBA{R: 0xF5, G: 0xFF, B: 0xFA, A: 0xFF}
|
||||||
Aquamarine = color.RGBA{0x7F, 0xFF, 0xD4, 0xFF}
|
Aquamarine = color.RGBA{R: 0x7F, G: 0xFF, B: 0xD4, A: 0xFF}
|
||||||
Azure = color.RGBA{0xF0, 0xFF, 0xFF, 0xFF}
|
Azure = color.RGBA{R: 0xF0, G: 0xFF, B: 0xFF, A: 0xFF}
|
||||||
Lavender = color.RGBA{0xE6, 0xE6, 0xFA, 0xFF}
|
Lavender = color.RGBA{R: 0xE6, G: 0xE6, B: 0xFA, A: 0xFF}
|
||||||
Plum = color.RGBA{0xDD, 0xA0, 0xDD, 0xFF}
|
Plum = color.RGBA{R: 0xDD, G: 0xA0, B: 0xDD, A: 0xFF}
|
||||||
AntiqueWhite = color.RGBA{0xFA, 0xEB, 0xD7, 0xFF}
|
AntiqueWhite = color.RGBA{R: 0xFA, G: 0xEB, B: 0xD7, A: 0xFF}
|
||||||
NavajoWhite = color.RGBA{0xFF, 0xDE, 0xAD, 0xFF}
|
NavajoWhite = color.RGBA{R: 0xFF, G: 0xDE, B: 0xAD, A: 0xFF}
|
||||||
Moccasin = color.RGBA{0xFF, 0xE4, 0xB5, 0xFF}
|
Moccasin = color.RGBA{R: 0xFF, G: 0xE4, B: 0xB5, A: 0xFF}
|
||||||
MediumAquamarine = color.RGBA{0x66, 0xCD, 0xAA, 0xFF}
|
MediumAquamarine = color.RGBA{R: 0x66, G: 0xCD, B: 0xAA, A: 0xFF}
|
||||||
PaleTurquoise = color.RGBA{0xAF, 0xEE, 0xEE, 0xFF}
|
PaleTurquoise = color.RGBA{R: 0xAF, G: 0xEE, B: 0xEE, A: 0xFF}
|
||||||
LightPink = color.RGBA{0xFF, 0xB6, 0xC1, 0xFF}
|
LightPink = color.RGBA{R: 0xFF, G: 0xB6, B: 0xC1, A: 0xFF}
|
||||||
Tomato = color.RGBA{0xFF, 0x63, 0x47, 0xFF}
|
Tomato = color.RGBA{R: 0xFF, G: 0x63, B: 0x47, A: 0xFF}
|
||||||
Orange = color.RGBA{0xFF, 0xA5, 0x00, 0xFF}
|
Orange = color.RGBA{R: 0xFF, G: 0xA5, A: 0xFF}
|
||||||
Black = color.RGBA{0x00, 0x00, 0x00, 0xFF}
|
Black = color.RGBA{A: 0xFF}
|
||||||
White = color.RGBA{0xFF, 0xFF, 0xFF, 0xFF}
|
White = color.RGBA{R: 0xFF, G: 0xFF, B: 0xFF, A: 0xFF}
|
||||||
LightGray = color.RGBA{200, 200, 200, 255}
|
LightGray = color.RGBA{R: 200, G: 200, B: 200, A: 255}
|
||||||
Outdoors = []color.RGBA{
|
Outdoors = []color.RGBA{
|
||||||
{67, 110, 165, 255},
|
{67, 110, 165, 255},
|
||||||
{47, 76, 114, 255},
|
{47, 76, 114, 255},
|
||||||
|
@ -58,521 +58,59 @@ var (
|
||||||
{254, 165, 0, 255},
|
{254, 165, 0, 255},
|
||||||
}
|
}
|
||||||
|
|
||||||
Plasma = []color.RGBA{
|
Sleek = []color.RGBA{
|
||||||
color.RGBA{0x0c, 0x07, 0x86, 0xff},
|
{R: 0x2C, G: 0x35, B: 0x31, A: 0xFF},
|
||||||
color.RGBA{0x10, 0x07, 0x87, 0xff},
|
{R: 0x11, G: 0x64, B: 0x66, A: 0xFF},
|
||||||
color.RGBA{0x13, 0x06, 0x89, 0xff},
|
{R: 0xD9, G: 0xB0, B: 0x8C, A: 0xFF},
|
||||||
color.RGBA{0x15, 0x06, 0x8a, 0xff},
|
{R: 0xFF, G: 0xCB, B: 0x9A, A: 0xFF},
|
||||||
color.RGBA{0x18, 0x06, 0x8b, 0xff},
|
{R: 0xD1, G: 0xE8, B: 0xE2, A: 0xFF},
|
||||||
color.RGBA{0x1b, 0x06, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x1d, 0x06, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x05, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x21, 0x05, 0x8f, 0xff},
|
|
||||||
color.RGBA{0x23, 0x05, 0x90, 0xff},
|
|
||||||
color.RGBA{0x25, 0x05, 0x91, 0xff},
|
|
||||||
color.RGBA{0x27, 0x05, 0x92, 0xff},
|
|
||||||
color.RGBA{0x29, 0x05, 0x93, 0xff},
|
|
||||||
color.RGBA{0x2b, 0x05, 0x94, 0xff},
|
|
||||||
color.RGBA{0x2d, 0x04, 0x94, 0xff},
|
|
||||||
color.RGBA{0x2f, 0x04, 0x95, 0xff},
|
|
||||||
color.RGBA{0x31, 0x04, 0x96, 0xff},
|
|
||||||
color.RGBA{0x33, 0x04, 0x97, 0xff},
|
|
||||||
color.RGBA{0x34, 0x04, 0x98, 0xff},
|
|
||||||
color.RGBA{0x36, 0x04, 0x98, 0xff},
|
|
||||||
color.RGBA{0x38, 0x04, 0x99, 0xff},
|
|
||||||
color.RGBA{0x3a, 0x04, 0x9a, 0xff},
|
|
||||||
color.RGBA{0x3b, 0x03, 0x9a, 0xff},
|
|
||||||
color.RGBA{0x3d, 0x03, 0x9b, 0xff},
|
|
||||||
color.RGBA{0x3f, 0x03, 0x9c, 0xff},
|
|
||||||
color.RGBA{0x40, 0x03, 0x9c, 0xff},
|
|
||||||
color.RGBA{0x42, 0x03, 0x9d, 0xff},
|
|
||||||
color.RGBA{0x44, 0x03, 0x9e, 0xff},
|
|
||||||
color.RGBA{0x45, 0x03, 0x9e, 0xff},
|
|
||||||
color.RGBA{0x47, 0x02, 0x9f, 0xff},
|
|
||||||
color.RGBA{0x49, 0x02, 0x9f, 0xff},
|
|
||||||
color.RGBA{0x4a, 0x02, 0xa0, 0xff},
|
|
||||||
color.RGBA{0x4c, 0x02, 0xa1, 0xff},
|
|
||||||
color.RGBA{0x4e, 0x02, 0xa1, 0xff},
|
|
||||||
color.RGBA{0x4f, 0x02, 0xa2, 0xff},
|
|
||||||
color.RGBA{0x51, 0x01, 0xa2, 0xff},
|
|
||||||
color.RGBA{0x52, 0x01, 0xa3, 0xff},
|
|
||||||
color.RGBA{0x54, 0x01, 0xa3, 0xff},
|
|
||||||
color.RGBA{0x56, 0x01, 0xa3, 0xff},
|
|
||||||
color.RGBA{0x57, 0x01, 0xa4, 0xff},
|
|
||||||
color.RGBA{0x59, 0x01, 0xa4, 0xff},
|
|
||||||
color.RGBA{0x5a, 0x00, 0xa5, 0xff},
|
|
||||||
color.RGBA{0x5c, 0x00, 0xa5, 0xff},
|
|
||||||
color.RGBA{0x5e, 0x00, 0xa5, 0xff},
|
|
||||||
color.RGBA{0x5f, 0x00, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x61, 0x00, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x62, 0x00, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x64, 0x00, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x65, 0x00, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x67, 0x00, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x68, 0x00, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x6a, 0x00, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x6c, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x6d, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x6f, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x70, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x72, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x73, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x75, 0x00, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x76, 0x01, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x78, 0x01, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x79, 0x01, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x7b, 0x02, 0xa8, 0xff},
|
|
||||||
color.RGBA{0x7c, 0x02, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x7e, 0x03, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x7f, 0x03, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x81, 0x04, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x82, 0x04, 0xa7, 0xff},
|
|
||||||
color.RGBA{0x84, 0x05, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x85, 0x06, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x86, 0x07, 0xa6, 0xff},
|
|
||||||
color.RGBA{0x88, 0x07, 0xa5, 0xff},
|
|
||||||
color.RGBA{0x89, 0x08, 0xa5, 0xff},
|
|
||||||
color.RGBA{0x8b, 0x09, 0xa4, 0xff},
|
|
||||||
color.RGBA{0x8c, 0x0a, 0xa4, 0xff},
|
|
||||||
color.RGBA{0x8e, 0x0c, 0xa4, 0xff},
|
|
||||||
color.RGBA{0x8f, 0x0d, 0xa3, 0xff},
|
|
||||||
color.RGBA{0x90, 0x0e, 0xa3, 0xff},
|
|
||||||
color.RGBA{0x92, 0x0f, 0xa2, 0xff},
|
|
||||||
color.RGBA{0x93, 0x10, 0xa1, 0xff},
|
|
||||||
color.RGBA{0x95, 0x11, 0xa1, 0xff},
|
|
||||||
color.RGBA{0x96, 0x12, 0xa0, 0xff},
|
|
||||||
color.RGBA{0x97, 0x13, 0xa0, 0xff},
|
|
||||||
color.RGBA{0x99, 0x14, 0x9f, 0xff},
|
|
||||||
color.RGBA{0x9a, 0x15, 0x9e, 0xff},
|
|
||||||
color.RGBA{0x9b, 0x17, 0x9e, 0xff},
|
|
||||||
color.RGBA{0x9d, 0x18, 0x9d, 0xff},
|
|
||||||
color.RGBA{0x9e, 0x19, 0x9c, 0xff},
|
|
||||||
color.RGBA{0x9f, 0x1a, 0x9b, 0xff},
|
|
||||||
color.RGBA{0xa0, 0x1b, 0x9b, 0xff},
|
|
||||||
color.RGBA{0xa2, 0x1c, 0x9a, 0xff},
|
|
||||||
color.RGBA{0xa3, 0x1d, 0x99, 0xff},
|
|
||||||
color.RGBA{0xa4, 0x1e, 0x98, 0xff},
|
|
||||||
color.RGBA{0xa5, 0x1f, 0x97, 0xff},
|
|
||||||
color.RGBA{0xa7, 0x21, 0x97, 0xff},
|
|
||||||
color.RGBA{0xa8, 0x22, 0x96, 0xff},
|
|
||||||
color.RGBA{0xa9, 0x23, 0x95, 0xff},
|
|
||||||
color.RGBA{0xaa, 0x24, 0x94, 0xff},
|
|
||||||
color.RGBA{0xac, 0x25, 0x93, 0xff},
|
|
||||||
color.RGBA{0xad, 0x26, 0x92, 0xff},
|
|
||||||
color.RGBA{0xae, 0x27, 0x91, 0xff},
|
|
||||||
color.RGBA{0xaf, 0x28, 0x90, 0xff},
|
|
||||||
color.RGBA{0xb0, 0x2a, 0x8f, 0xff},
|
|
||||||
color.RGBA{0xb1, 0x2b, 0x8f, 0xff},
|
|
||||||
color.RGBA{0xb2, 0x2c, 0x8e, 0xff},
|
|
||||||
color.RGBA{0xb4, 0x2d, 0x8d, 0xff},
|
|
||||||
color.RGBA{0xb5, 0x2e, 0x8c, 0xff},
|
|
||||||
color.RGBA{0xb6, 0x2f, 0x8b, 0xff},
|
|
||||||
color.RGBA{0xb7, 0x30, 0x8a, 0xff},
|
|
||||||
color.RGBA{0xb8, 0x32, 0x89, 0xff},
|
|
||||||
color.RGBA{0xb9, 0x33, 0x88, 0xff},
|
|
||||||
color.RGBA{0xba, 0x34, 0x87, 0xff},
|
|
||||||
color.RGBA{0xbb, 0x35, 0x86, 0xff},
|
|
||||||
color.RGBA{0xbc, 0x36, 0x85, 0xff},
|
|
||||||
color.RGBA{0xbd, 0x37, 0x84, 0xff},
|
|
||||||
color.RGBA{0xbe, 0x38, 0x83, 0xff},
|
|
||||||
color.RGBA{0xbf, 0x39, 0x82, 0xff},
|
|
||||||
color.RGBA{0xc0, 0x3b, 0x81, 0xff},
|
|
||||||
color.RGBA{0xc1, 0x3c, 0x80, 0xff},
|
|
||||||
color.RGBA{0xc2, 0x3d, 0x80, 0xff},
|
|
||||||
color.RGBA{0xc3, 0x3e, 0x7f, 0xff},
|
|
||||||
color.RGBA{0xc4, 0x3f, 0x7e, 0xff},
|
|
||||||
color.RGBA{0xc5, 0x40, 0x7d, 0xff},
|
|
||||||
color.RGBA{0xc6, 0x41, 0x7c, 0xff},
|
|
||||||
color.RGBA{0xc7, 0x42, 0x7b, 0xff},
|
|
||||||
color.RGBA{0xc8, 0x44, 0x7a, 0xff},
|
|
||||||
color.RGBA{0xc9, 0x45, 0x79, 0xff},
|
|
||||||
color.RGBA{0xca, 0x46, 0x78, 0xff},
|
|
||||||
color.RGBA{0xcb, 0x47, 0x77, 0xff},
|
|
||||||
color.RGBA{0xcc, 0x48, 0x76, 0xff},
|
|
||||||
color.RGBA{0xcd, 0x49, 0x75, 0xff},
|
|
||||||
color.RGBA{0xce, 0x4a, 0x75, 0xff},
|
|
||||||
color.RGBA{0xcf, 0x4b, 0x74, 0xff},
|
|
||||||
color.RGBA{0xd0, 0x4d, 0x73, 0xff},
|
|
||||||
color.RGBA{0xd1, 0x4e, 0x72, 0xff},
|
|
||||||
color.RGBA{0xd1, 0x4f, 0x71, 0xff},
|
|
||||||
color.RGBA{0xd2, 0x50, 0x70, 0xff},
|
|
||||||
color.RGBA{0xd3, 0x51, 0x6f, 0xff},
|
|
||||||
color.RGBA{0xd4, 0x52, 0x6e, 0xff},
|
|
||||||
color.RGBA{0xd5, 0x53, 0x6d, 0xff},
|
|
||||||
color.RGBA{0xd6, 0x55, 0x6d, 0xff},
|
|
||||||
color.RGBA{0xd7, 0x56, 0x6c, 0xff},
|
|
||||||
color.RGBA{0xd7, 0x57, 0x6b, 0xff},
|
|
||||||
color.RGBA{0xd8, 0x58, 0x6a, 0xff},
|
|
||||||
color.RGBA{0xd9, 0x59, 0x69, 0xff},
|
|
||||||
color.RGBA{0xda, 0x5a, 0x68, 0xff},
|
|
||||||
color.RGBA{0xdb, 0x5b, 0x67, 0xff},
|
|
||||||
color.RGBA{0xdc, 0x5d, 0x66, 0xff},
|
|
||||||
color.RGBA{0xdc, 0x5e, 0x66, 0xff},
|
|
||||||
color.RGBA{0xdd, 0x5f, 0x65, 0xff},
|
|
||||||
color.RGBA{0xde, 0x60, 0x64, 0xff},
|
|
||||||
color.RGBA{0xdf, 0x61, 0x63, 0xff},
|
|
||||||
color.RGBA{0xdf, 0x62, 0x62, 0xff},
|
|
||||||
color.RGBA{0xe0, 0x64, 0x61, 0xff},
|
|
||||||
color.RGBA{0xe1, 0x65, 0x60, 0xff},
|
|
||||||
color.RGBA{0xe2, 0x66, 0x60, 0xff},
|
|
||||||
color.RGBA{0xe3, 0x67, 0x5f, 0xff},
|
|
||||||
color.RGBA{0xe3, 0x68, 0x5e, 0xff},
|
|
||||||
color.RGBA{0xe4, 0x6a, 0x5d, 0xff},
|
|
||||||
color.RGBA{0xe5, 0x6b, 0x5c, 0xff},
|
|
||||||
color.RGBA{0xe5, 0x6c, 0x5b, 0xff},
|
|
||||||
color.RGBA{0xe6, 0x6d, 0x5a, 0xff},
|
|
||||||
color.RGBA{0xe7, 0x6e, 0x5a, 0xff},
|
|
||||||
color.RGBA{0xe8, 0x70, 0x59, 0xff},
|
|
||||||
color.RGBA{0xe8, 0x71, 0x58, 0xff},
|
|
||||||
color.RGBA{0xe9, 0x72, 0x57, 0xff},
|
|
||||||
color.RGBA{0xea, 0x73, 0x56, 0xff},
|
|
||||||
color.RGBA{0xea, 0x74, 0x55, 0xff},
|
|
||||||
color.RGBA{0xeb, 0x76, 0x54, 0xff},
|
|
||||||
color.RGBA{0xec, 0x77, 0x54, 0xff},
|
|
||||||
color.RGBA{0xec, 0x78, 0x53, 0xff},
|
|
||||||
color.RGBA{0xed, 0x79, 0x52, 0xff},
|
|
||||||
color.RGBA{0xed, 0x7b, 0x51, 0xff},
|
|
||||||
color.RGBA{0xee, 0x7c, 0x50, 0xff},
|
|
||||||
color.RGBA{0xef, 0x7d, 0x4f, 0xff},
|
|
||||||
color.RGBA{0xef, 0x7e, 0x4e, 0xff},
|
|
||||||
color.RGBA{0xf0, 0x80, 0x4d, 0xff},
|
|
||||||
color.RGBA{0xf0, 0x81, 0x4d, 0xff},
|
|
||||||
color.RGBA{0xf1, 0x82, 0x4c, 0xff},
|
|
||||||
color.RGBA{0xf2, 0x84, 0x4b, 0xff},
|
|
||||||
color.RGBA{0xf2, 0x85, 0x4a, 0xff},
|
|
||||||
color.RGBA{0xf3, 0x86, 0x49, 0xff},
|
|
||||||
color.RGBA{0xf3, 0x87, 0x48, 0xff},
|
|
||||||
color.RGBA{0xf4, 0x89, 0x47, 0xff},
|
|
||||||
color.RGBA{0xf4, 0x8a, 0x47, 0xff},
|
|
||||||
color.RGBA{0xf5, 0x8b, 0x46, 0xff},
|
|
||||||
color.RGBA{0xf5, 0x8d, 0x45, 0xff},
|
|
||||||
color.RGBA{0xf6, 0x8e, 0x44, 0xff},
|
|
||||||
color.RGBA{0xf6, 0x8f, 0x43, 0xff},
|
|
||||||
color.RGBA{0xf6, 0x91, 0x42, 0xff},
|
|
||||||
color.RGBA{0xf7, 0x92, 0x41, 0xff},
|
|
||||||
color.RGBA{0xf7, 0x93, 0x41, 0xff},
|
|
||||||
color.RGBA{0xf8, 0x95, 0x40, 0xff},
|
|
||||||
color.RGBA{0xf8, 0x96, 0x3f, 0xff},
|
|
||||||
color.RGBA{0xf8, 0x98, 0x3e, 0xff},
|
|
||||||
color.RGBA{0xf9, 0x99, 0x3d, 0xff},
|
|
||||||
color.RGBA{0xf9, 0x9a, 0x3c, 0xff},
|
|
||||||
color.RGBA{0xfa, 0x9c, 0x3b, 0xff},
|
|
||||||
color.RGBA{0xfa, 0x9d, 0x3a, 0xff},
|
|
||||||
color.RGBA{0xfa, 0x9f, 0x3a, 0xff},
|
|
||||||
color.RGBA{0xfa, 0xa0, 0x39, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xa2, 0x38, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xa3, 0x37, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xa4, 0x36, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xa6, 0x35, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xa7, 0x35, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xa9, 0x34, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xaa, 0x33, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xac, 0x32, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xad, 0x31, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xaf, 0x31, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb0, 0x30, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb2, 0x2f, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb3, 0x2e, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb5, 0x2d, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb6, 0x2d, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb8, 0x2c, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xb9, 0x2b, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xbb, 0x2b, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xbc, 0x2a, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xbe, 0x29, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xc0, 0x29, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xc1, 0x28, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xc3, 0x28, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xc4, 0x27, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xc6, 0x26, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xc7, 0x26, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xc9, 0x26, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xcb, 0x25, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xcc, 0x25, 0xff},
|
|
||||||
color.RGBA{0xfc, 0xce, 0x25, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xd0, 0x24, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xd1, 0x24, 0xff},
|
|
||||||
color.RGBA{0xfb, 0xd3, 0x24, 0xff},
|
|
||||||
color.RGBA{0xfa, 0xd5, 0x24, 0xff},
|
|
||||||
color.RGBA{0xfa, 0xd6, 0x24, 0xff},
|
|
||||||
color.RGBA{0xfa, 0xd8, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf9, 0xd9, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf9, 0xdb, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf8, 0xdd, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf8, 0xdf, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf7, 0xe0, 0x24, 0xff},
|
|
||||||
color.RGBA{0xf7, 0xe2, 0x25, 0xff},
|
|
||||||
color.RGBA{0xf6, 0xe4, 0x25, 0xff},
|
|
||||||
color.RGBA{0xf6, 0xe5, 0x25, 0xff},
|
|
||||||
color.RGBA{0xf5, 0xe7, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf5, 0xe9, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf4, 0xea, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf3, 0xec, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf3, 0xee, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf2, 0xf0, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf2, 0xf1, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf1, 0xf3, 0x26, 0xff},
|
|
||||||
color.RGBA{0xf0, 0xf5, 0x25, 0xff},
|
|
||||||
color.RGBA{0xf0, 0xf6, 0x23, 0xff},
|
|
||||||
color.RGBA{0xef, 0xf8, 0x21, 0xff},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Viridis = []color.RGBA{
|
Energetic = []color.RGBA{
|
||||||
color.RGBA{0x44, 0x01, 0x54, 0xff},
|
{R: 0x56, G: 0x80, B: 0xE9, A: 0xFF},
|
||||||
color.RGBA{0x44, 0x02, 0x55, 0xff},
|
{R: 0x84, G: 0xCE, B: 0xEB, A: 0xFF},
|
||||||
color.RGBA{0x44, 0x03, 0x57, 0xff},
|
{R: 0x5A, G: 0x89, B: 0xEA, A: 0xFF},
|
||||||
color.RGBA{0x45, 0x05, 0x58, 0xff},
|
{R: 0xC1, G: 0xC8, B: 0xEA, A: 0xFF},
|
||||||
color.RGBA{0x45, 0x06, 0x5a, 0xff},
|
{R: 0x88, G: 0x60, B: 0xD0, A: 0xFF},
|
||||||
color.RGBA{0x45, 0x08, 0x5b, 0xff},
|
}
|
||||||
color.RGBA{0x46, 0x09, 0x5c, 0xff},
|
|
||||||
color.RGBA{0x46, 0x0b, 0x5e, 0xff},
|
Youthful = []color.RGBA{
|
||||||
color.RGBA{0x46, 0x0c, 0x5f, 0xff},
|
{R: 0xA6, G: 0x4A, B: 0xC9, A: 0xFF},
|
||||||
color.RGBA{0x46, 0x0e, 0x61, 0xff},
|
{R: 0xFC, G: 0xCD, B: 0x04, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x0f, 0x62, 0xff},
|
{R: 0xFF, G: 0xB4, B: 0x8F, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x11, 0x63, 0xff},
|
{R: 0xF5, G: 0xE6, B: 0xCC, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x12, 0x65, 0xff},
|
{R: 0x17, G: 0xE9, B: 0xE0, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x14, 0x66, 0xff},
|
}
|
||||||
color.RGBA{0x47, 0x15, 0x67, 0xff},
|
|
||||||
color.RGBA{0x47, 0x16, 0x69, 0xff},
|
PinkPastel = []color.RGBA{
|
||||||
color.RGBA{0x47, 0x18, 0x6a, 0xff},
|
{R: 0xA1, G: 0xC3, B: 0xD1, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x19, 0x6b, 0xff},
|
{R: 0xB3, G: 0x9B, B: 0xC8, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x1a, 0x6c, 0xff},
|
{R: 0xF0, G: 0xEB, B: 0xF4, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x1c, 0x6e, 0xff},
|
{R: 0xF1, G: 0x72, B: 0xA1, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x1d, 0x6f, 0xff},
|
{R: 0xE6, G: 0x43, B: 0x98, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x1e, 0x70, 0xff},
|
}
|
||||||
color.RGBA{0x48, 0x20, 0x71, 0xff},
|
|
||||||
color.RGBA{0x48, 0x21, 0x72, 0xff},
|
Citrus = []color.RGBA{
|
||||||
color.RGBA{0x48, 0x22, 0x73, 0xff},
|
{R: 0x1F, G: 0x26, B: 0x05, A: 0xFF},
|
||||||
color.RGBA{0x48, 0x23, 0x74, 0xff},
|
{R: 0x1F, G: 0x65, B: 0x21, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x25, 0x75, 0xff},
|
{R: 0x53, G: 0x90, B: 0x0F, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x26, 0x76, 0xff},
|
{R: 0xA4, G: 0xA7, B: 0x1E, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x27, 0x77, 0xff},
|
{R: 0xD6, G: 0xCE, B: 0x15, A: 0xFF},
|
||||||
color.RGBA{0x47, 0x28, 0x78, 0xff},
|
}
|
||||||
color.RGBA{0x47, 0x2a, 0x79, 0xff},
|
|
||||||
color.RGBA{0x47, 0x2b, 0x7a, 0xff},
|
Cheerful = []color.RGBA{
|
||||||
color.RGBA{0x47, 0x2c, 0x7b, 0xff},
|
{R: 0xFB, G: 0xE8, B: 0xA6, A: 0xFF},
|
||||||
color.RGBA{0x46, 0x2d, 0x7c, 0xff},
|
{R: 0xF4, G: 0x97, B: 0x6C, A: 0xFF},
|
||||||
color.RGBA{0x46, 0x2f, 0x7c, 0xff},
|
{R: 0x30, G: 0x3C, B: 0x6C, A: 0xFF},
|
||||||
color.RGBA{0x46, 0x30, 0x7d, 0xff},
|
{R: 0xB4, G: 0xDF, B: 0xE5, A: 0xFF},
|
||||||
color.RGBA{0x46, 0x31, 0x7e, 0xff},
|
{R: 0xD2, G: 0xFD, B: 0xFF, A: 0xFF},
|
||||||
color.RGBA{0x45, 0x32, 0x7f, 0xff},
|
}
|
||||||
color.RGBA{0x45, 0x34, 0x7f, 0xff},
|
|
||||||
color.RGBA{0x45, 0x35, 0x80, 0xff},
|
Earthy = []color.RGBA{
|
||||||
color.RGBA{0x45, 0x36, 0x81, 0xff},
|
{R: 0x8D, G: 0x87, B: 0x41, A: 0xFF},
|
||||||
color.RGBA{0x44, 0x37, 0x81, 0xff},
|
{R: 0xF4, G: 0x97, B: 0x6C, A: 0xFF},
|
||||||
color.RGBA{0x44, 0x39, 0x82, 0xff},
|
{R: 0x30, G: 0x3C, B: 0x6C, A: 0xFF},
|
||||||
color.RGBA{0x43, 0x3a, 0x83, 0xff},
|
{R: 0xB4, G: 0xDF, B: 0xE5, A: 0xFF},
|
||||||
color.RGBA{0x43, 0x3b, 0x83, 0xff},
|
{R: 0xD2, G: 0xFD, B: 0xFF, A: 0xFF},
|
||||||
color.RGBA{0x43, 0x3c, 0x84, 0xff},
|
|
||||||
color.RGBA{0x42, 0x3d, 0x84, 0xff},
|
|
||||||
color.RGBA{0x42, 0x3e, 0x85, 0xff},
|
|
||||||
color.RGBA{0x42, 0x40, 0x85, 0xff},
|
|
||||||
color.RGBA{0x41, 0x41, 0x86, 0xff},
|
|
||||||
color.RGBA{0x41, 0x42, 0x86, 0xff},
|
|
||||||
color.RGBA{0x40, 0x43, 0x87, 0xff},
|
|
||||||
color.RGBA{0x40, 0x44, 0x87, 0xff},
|
|
||||||
color.RGBA{0x3f, 0x45, 0x87, 0xff},
|
|
||||||
color.RGBA{0x3f, 0x47, 0x88, 0xff},
|
|
||||||
color.RGBA{0x3e, 0x48, 0x88, 0xff},
|
|
||||||
color.RGBA{0x3e, 0x49, 0x89, 0xff},
|
|
||||||
color.RGBA{0x3d, 0x4a, 0x89, 0xff},
|
|
||||||
color.RGBA{0x3d, 0x4b, 0x89, 0xff},
|
|
||||||
color.RGBA{0x3d, 0x4c, 0x89, 0xff},
|
|
||||||
color.RGBA{0x3c, 0x4d, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x3c, 0x4e, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x3b, 0x50, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x3b, 0x51, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x3a, 0x52, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x3a, 0x53, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x39, 0x54, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x39, 0x55, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x38, 0x56, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x38, 0x57, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x37, 0x58, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x37, 0x59, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x36, 0x5a, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x36, 0x5b, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x35, 0x5c, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x35, 0x5d, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x34, 0x5e, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x34, 0x5f, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x33, 0x60, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x33, 0x61, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x32, 0x62, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x32, 0x63, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x31, 0x64, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x31, 0x65, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x31, 0x66, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x30, 0x67, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x30, 0x68, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x2f, 0x69, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x2f, 0x6a, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x2e, 0x6b, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2e, 0x6c, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2e, 0x6d, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2d, 0x6e, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2d, 0x6f, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2c, 0x70, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2c, 0x71, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2c, 0x72, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2b, 0x73, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2b, 0x74, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2a, 0x75, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2a, 0x76, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x2a, 0x77, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x29, 0x78, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x29, 0x79, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x28, 0x7a, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x28, 0x7a, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x28, 0x7b, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x27, 0x7c, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x27, 0x7d, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x27, 0x7e, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x26, 0x7f, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x26, 0x80, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x26, 0x81, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x25, 0x82, 0x8e, 0xff},
|
|
||||||
color.RGBA{0x25, 0x83, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x24, 0x84, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x24, 0x85, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x24, 0x86, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x23, 0x87, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x23, 0x88, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x23, 0x89, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x22, 0x89, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x22, 0x8a, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x22, 0x8b, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x21, 0x8c, 0x8d, 0xff},
|
|
||||||
color.RGBA{0x21, 0x8d, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x21, 0x8e, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x20, 0x8f, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x20, 0x90, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x20, 0x91, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x92, 0x8c, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x93, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x94, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x95, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x1f, 0x96, 0x8b, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x97, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x98, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x99, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x99, 0x8a, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9a, 0x89, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9b, 0x89, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9c, 0x89, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9d, 0x88, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9e, 0x88, 0xff},
|
|
||||||
color.RGBA{0x1e, 0x9f, 0x88, 0xff},
|
|
||||||
color.RGBA{0x1e, 0xa0, 0x87, 0xff},
|
|
||||||
color.RGBA{0x1f, 0xa1, 0x87, 0xff},
|
|
||||||
color.RGBA{0x1f, 0xa2, 0x86, 0xff},
|
|
||||||
color.RGBA{0x1f, 0xa3, 0x86, 0xff},
|
|
||||||
color.RGBA{0x20, 0xa4, 0x85, 0xff},
|
|
||||||
color.RGBA{0x20, 0xa5, 0x85, 0xff},
|
|
||||||
color.RGBA{0x21, 0xa6, 0x85, 0xff},
|
|
||||||
color.RGBA{0x21, 0xa7, 0x84, 0xff},
|
|
||||||
color.RGBA{0x22, 0xa7, 0x84, 0xff},
|
|
||||||
color.RGBA{0x23, 0xa8, 0x83, 0xff},
|
|
||||||
color.RGBA{0x23, 0xa9, 0x82, 0xff},
|
|
||||||
color.RGBA{0x24, 0xaa, 0x82, 0xff},
|
|
||||||
color.RGBA{0x25, 0xab, 0x81, 0xff},
|
|
||||||
color.RGBA{0x26, 0xac, 0x81, 0xff},
|
|
||||||
color.RGBA{0x27, 0xad, 0x80, 0xff},
|
|
||||||
color.RGBA{0x28, 0xae, 0x7f, 0xff},
|
|
||||||
color.RGBA{0x29, 0xaf, 0x7f, 0xff},
|
|
||||||
color.RGBA{0x2a, 0xb0, 0x7e, 0xff},
|
|
||||||
color.RGBA{0x2b, 0xb1, 0x7d, 0xff},
|
|
||||||
color.RGBA{0x2c, 0xb1, 0x7d, 0xff},
|
|
||||||
color.RGBA{0x2e, 0xb2, 0x7c, 0xff},
|
|
||||||
color.RGBA{0x2f, 0xb3, 0x7b, 0xff},
|
|
||||||
color.RGBA{0x30, 0xb4, 0x7a, 0xff},
|
|
||||||
color.RGBA{0x32, 0xb5, 0x7a, 0xff},
|
|
||||||
color.RGBA{0x33, 0xb6, 0x79, 0xff},
|
|
||||||
color.RGBA{0x35, 0xb7, 0x78, 0xff},
|
|
||||||
color.RGBA{0x36, 0xb8, 0x77, 0xff},
|
|
||||||
color.RGBA{0x38, 0xb9, 0x76, 0xff},
|
|
||||||
color.RGBA{0x39, 0xb9, 0x76, 0xff},
|
|
||||||
color.RGBA{0x3b, 0xba, 0x75, 0xff},
|
|
||||||
color.RGBA{0x3d, 0xbb, 0x74, 0xff},
|
|
||||||
color.RGBA{0x3e, 0xbc, 0x73, 0xff},
|
|
||||||
color.RGBA{0x40, 0xbd, 0x72, 0xff},
|
|
||||||
color.RGBA{0x42, 0xbe, 0x71, 0xff},
|
|
||||||
color.RGBA{0x44, 0xbe, 0x70, 0xff},
|
|
||||||
color.RGBA{0x45, 0xbf, 0x6f, 0xff},
|
|
||||||
color.RGBA{0x47, 0xc0, 0x6e, 0xff},
|
|
||||||
color.RGBA{0x49, 0xc1, 0x6d, 0xff},
|
|
||||||
color.RGBA{0x4b, 0xc2, 0x6c, 0xff},
|
|
||||||
color.RGBA{0x4d, 0xc2, 0x6b, 0xff},
|
|
||||||
color.RGBA{0x4f, 0xc3, 0x69, 0xff},
|
|
||||||
color.RGBA{0x51, 0xc4, 0x68, 0xff},
|
|
||||||
color.RGBA{0x53, 0xc5, 0x67, 0xff},
|
|
||||||
color.RGBA{0x55, 0xc6, 0x66, 0xff},
|
|
||||||
color.RGBA{0x57, 0xc6, 0x65, 0xff},
|
|
||||||
color.RGBA{0x59, 0xc7, 0x64, 0xff},
|
|
||||||
color.RGBA{0x5b, 0xc8, 0x62, 0xff},
|
|
||||||
color.RGBA{0x5e, 0xc9, 0x61, 0xff},
|
|
||||||
color.RGBA{0x60, 0xc9, 0x60, 0xff},
|
|
||||||
color.RGBA{0x62, 0xca, 0x5f, 0xff},
|
|
||||||
color.RGBA{0x64, 0xcb, 0x5d, 0xff},
|
|
||||||
color.RGBA{0x67, 0xcc, 0x5c, 0xff},
|
|
||||||
color.RGBA{0x69, 0xcc, 0x5b, 0xff},
|
|
||||||
color.RGBA{0x6b, 0xcd, 0x59, 0xff},
|
|
||||||
color.RGBA{0x6d, 0xce, 0x58, 0xff},
|
|
||||||
color.RGBA{0x70, 0xce, 0x56, 0xff},
|
|
||||||
color.RGBA{0x72, 0xcf, 0x55, 0xff},
|
|
||||||
color.RGBA{0x74, 0xd0, 0x54, 0xff},
|
|
||||||
color.RGBA{0x77, 0xd0, 0x52, 0xff},
|
|
||||||
color.RGBA{0x79, 0xd1, 0x51, 0xff},
|
|
||||||
color.RGBA{0x7c, 0xd2, 0x4f, 0xff},
|
|
||||||
color.RGBA{0x7e, 0xd2, 0x4e, 0xff},
|
|
||||||
color.RGBA{0x81, 0xd3, 0x4c, 0xff},
|
|
||||||
color.RGBA{0x83, 0xd3, 0x4b, 0xff},
|
|
||||||
color.RGBA{0x86, 0xd4, 0x49, 0xff},
|
|
||||||
color.RGBA{0x88, 0xd5, 0x47, 0xff},
|
|
||||||
color.RGBA{0x8b, 0xd5, 0x46, 0xff},
|
|
||||||
color.RGBA{0x8d, 0xd6, 0x44, 0xff},
|
|
||||||
color.RGBA{0x90, 0xd6, 0x43, 0xff},
|
|
||||||
color.RGBA{0x92, 0xd7, 0x41, 0xff},
|
|
||||||
color.RGBA{0x95, 0xd7, 0x3f, 0xff},
|
|
||||||
color.RGBA{0x97, 0xd8, 0x3e, 0xff},
|
|
||||||
color.RGBA{0x9a, 0xd8, 0x3c, 0xff},
|
|
||||||
color.RGBA{0x9d, 0xd9, 0x3a, 0xff},
|
|
||||||
color.RGBA{0x9f, 0xd9, 0x38, 0xff},
|
|
||||||
color.RGBA{0xa2, 0xda, 0x37, 0xff},
|
|
||||||
color.RGBA{0xa5, 0xda, 0x35, 0xff},
|
|
||||||
color.RGBA{0xa7, 0xdb, 0x33, 0xff},
|
|
||||||
color.RGBA{0xaa, 0xdb, 0x32, 0xff},
|
|
||||||
color.RGBA{0xad, 0xdc, 0x30, 0xff},
|
|
||||||
color.RGBA{0xaf, 0xdc, 0x2e, 0xff},
|
|
||||||
color.RGBA{0xb2, 0xdd, 0x2c, 0xff},
|
|
||||||
color.RGBA{0xb5, 0xdd, 0x2b, 0xff},
|
|
||||||
color.RGBA{0xb7, 0xdd, 0x29, 0xff},
|
|
||||||
color.RGBA{0xba, 0xde, 0x27, 0xff},
|
|
||||||
color.RGBA{0xbd, 0xde, 0x26, 0xff},
|
|
||||||
color.RGBA{0xbf, 0xdf, 0x24, 0xff},
|
|
||||||
color.RGBA{0xc2, 0xdf, 0x22, 0xff},
|
|
||||||
color.RGBA{0xc5, 0xdf, 0x21, 0xff},
|
|
||||||
color.RGBA{0xc7, 0xe0, 0x1f, 0xff},
|
|
||||||
color.RGBA{0xca, 0xe0, 0x1e, 0xff},
|
|
||||||
color.RGBA{0xcd, 0xe0, 0x1d, 0xff},
|
|
||||||
color.RGBA{0xcf, 0xe1, 0x1c, 0xff},
|
|
||||||
color.RGBA{0xd2, 0xe1, 0x1b, 0xff},
|
|
||||||
color.RGBA{0xd4, 0xe1, 0x1a, 0xff},
|
|
||||||
color.RGBA{0xd7, 0xe2, 0x19, 0xff},
|
|
||||||
color.RGBA{0xda, 0xe2, 0x18, 0xff},
|
|
||||||
color.RGBA{0xdc, 0xe2, 0x18, 0xff},
|
|
||||||
color.RGBA{0xdf, 0xe3, 0x18, 0xff},
|
|
||||||
color.RGBA{0xe1, 0xe3, 0x18, 0xff},
|
|
||||||
color.RGBA{0xe4, 0xe3, 0x18, 0xff},
|
|
||||||
color.RGBA{0xe7, 0xe4, 0x19, 0xff},
|
|
||||||
color.RGBA{0xe9, 0xe4, 0x19, 0xff},
|
|
||||||
color.RGBA{0xec, 0xe4, 0x1a, 0xff},
|
|
||||||
color.RGBA{0xee, 0xe5, 0x1b, 0xff},
|
|
||||||
color.RGBA{0xf1, 0xe5, 0x1c, 0xff},
|
|
||||||
color.RGBA{0xf3, 0xe5, 0x1e, 0xff},
|
|
||||||
color.RGBA{0xf6, 0xe6, 0x1f, 0xff},
|
|
||||||
color.RGBA{0xf8, 0xe6, 0x21, 0xff},
|
|
||||||
color.RGBA{0xfa, 0xe6, 0x22, 0xff},
|
|
||||||
color.RGBA{0xfd, 0xe7, 0x24, 0xff},
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,15 +25,15 @@ func (c *Canva) Opts() Options {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Canva) Img() *image.RGBA {
|
func (c *Canva) Img() *image.RGBA {
|
||||||
return c.Img()
|
return c.img
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Canva) Width() int {
|
func (c *Canva) Width() int {
|
||||||
return c.Width()
|
return c.width
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Canva) Height() int {
|
func (c *Canva) Height() int {
|
||||||
return c.Height()
|
return c.height
|
||||||
}
|
}
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
@ -86,7 +86,7 @@ func NewCanva(w, h int) *Canva {
|
||||||
foreground: common.MistyRose,
|
foreground: common.MistyRose,
|
||||||
lineColor: common.Tomato,
|
lineColor: common.Tomato,
|
||||||
lineWidth: 3,
|
lineWidth: 3,
|
||||||
colorSchema: common.Plasma,
|
colorSchema: common.Youthful,
|
||||||
nIters: 20,
|
nIters: 20,
|
||||||
alpha: 255,
|
alpha: 255,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue