mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-01 20:49:11 -07:00
34 lines
417 B
Go
34 lines
417 B
Go
package soda
|
|
|
|
import (
|
|
"sort"
|
|
"sync"
|
|
|
|
"github.com/taigrr/simplecolorpalettes/simplecolor"
|
|
)
|
|
|
|
var (
|
|
once sync.Once
|
|
colors = simplecolor.SimplePalette{
|
|
0x005f00,
|
|
0x008700,
|
|
0x00af00,
|
|
0x5f0087,
|
|
0x767676,
|
|
0x875f87,
|
|
0x875faf,
|
|
0xdf0000,
|
|
0xffaf5f,
|
|
0xffd75f,
|
|
0xffff5f,
|
|
0xffffff,
|
|
}
|
|
)
|
|
|
|
func GetPalette() (sp simplecolor.SimplePalette) {
|
|
once.Do(func() {
|
|
sort.Sort(colors)
|
|
})
|
|
return colors
|
|
}
|