mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-01 20:49:11 -07:00
39 lines
476 B
Go
39 lines
476 B
Go
package jet
|
|
|
|
import (
|
|
"sort"
|
|
"sync"
|
|
|
|
"github.com/taigrr/simplecolorpalettes/simplecolor"
|
|
)
|
|
|
|
var (
|
|
once sync.Once
|
|
colors = simplecolor.SimplePalette{
|
|
0x0d61ac,
|
|
0x151515,
|
|
0x262626,
|
|
0x437019,
|
|
0x4f5b66,
|
|
0x5fb3b3,
|
|
0x65737e,
|
|
0x870000,
|
|
0xa7adba,
|
|
0xab7967,
|
|
0xc0c5ce,
|
|
0xc594c5,
|
|
0xcdd3de,
|
|
0xd8dee9,
|
|
0xf99157,
|
|
0xfac863,
|
|
0xffffff,
|
|
}
|
|
)
|
|
|
|
func GetPalette() (sp simplecolor.SimplePalette) {
|
|
once.Do(func() {
|
|
sort.Sort(colors)
|
|
})
|
|
return colors
|
|
}
|