mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-02 04:59:08 -07:00
32 lines
393 B
Go
32 lines
393 B
Go
package angr
|
|
|
|
import (
|
|
"sort"
|
|
"sync"
|
|
|
|
"github.com/taigrr/simplecolorpalettes/simplecolor"
|
|
)
|
|
|
|
var (
|
|
once sync.Once
|
|
colors = simplecolor.SimplePalette{
|
|
0x005f87,
|
|
0x303030,
|
|
0x3a3a3a,
|
|
0x444444,
|
|
0x87afd7,
|
|
0xafafd7,
|
|
0xb2b2b2,
|
|
0xd78787,
|
|
0xd7afd7,
|
|
0xffaf87,
|
|
}
|
|
)
|
|
|
|
func GetPalette() (sp simplecolor.SimplePalette) {
|
|
once.Do(func() {
|
|
sort.Sort(colors)
|
|
})
|
|
return colors
|
|
}
|