mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-01 20:49:11 -07:00
42 lines
512 B
Go
42 lines
512 B
Go
package kalisi
|
|
|
|
import (
|
|
"sort"
|
|
"sync"
|
|
|
|
"github.com/taigrr/go-colorpalettes/simplecolor"
|
|
)
|
|
|
|
var (
|
|
once sync.Once
|
|
colors = simplecolor.SimplePalette{
|
|
0x005f00,
|
|
0x005faf,
|
|
0x0087ff,
|
|
0x204d20,
|
|
0x404042,
|
|
0x5f0000,
|
|
0x5f005f,
|
|
0x5fafff,
|
|
0x8700af,
|
|
0x87d7ff,
|
|
0xa6db29,
|
|
0xafd700,
|
|
0xbcbcbc,
|
|
0xc5c5c5,
|
|
0xd75fff,
|
|
0xd7ff00,
|
|
0xe80000,
|
|
0xff0000,
|
|
0xff87ff,
|
|
0xffffff,
|
|
}
|
|
)
|
|
|
|
func GetPalette() (sp simplecolor.SimplePalette) {
|
|
once.Do(func() {
|
|
sort.Sort(colors)
|
|
})
|
|
return colors
|
|
}
|