mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-02 04:59:08 -07:00
46 lines
567 B
Go
46 lines
567 B
Go
package xtermlight
|
|
|
|
import (
|
|
"sort"
|
|
"sync"
|
|
|
|
"github.com/taigrr/simplecolorpalettes/simplecolor"
|
|
)
|
|
|
|
var (
|
|
once sync.Once
|
|
colors = simplecolor.SimplePalette{
|
|
0x000087,
|
|
0x005f00,
|
|
0x005f5f,
|
|
0x005fff,
|
|
0x00875f,
|
|
0x00d787,
|
|
0x00d7ff,
|
|
0x5f0000,
|
|
0x6c6c6c,
|
|
0x8a8a8a,
|
|
0xa8a8a8,
|
|
0xafff87,
|
|
0xafffff,
|
|
0xb2b2b2,
|
|
0xd0d0d0,
|
|
0xd70000,
|
|
0xd75f00,
|
|
0xd78700,
|
|
0xeeeeee,
|
|
0xff0000,
|
|
0xff5f00,
|
|
0xffaf00,
|
|
0xffdfdf,
|
|
0xffff87,
|
|
}
|
|
)
|
|
|
|
func GetPalette() (sp simplecolor.SimplePalette) {
|
|
once.Do(func() {
|
|
sort.Sort(colors)
|
|
})
|
|
return colors
|
|
}
|