summaryrefslogtreecommitdiff
path: root/internal/picker/defaults.go
blob: 5500465671c1824d765a7604ac20c9f83faafc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package picker

import (
	"github.com/ChausseBenjamin/termpicker/internal/slider"
	"github.com/ChausseBenjamin/termpicker/internal/ui"
)

func RGB() *Model {
	return New(
		[]slider.Model{
			slider.New('R', 255, ui.Style().Sliders.R...),
			slider.New('G', 255, ui.Style().Sliders.G...),
			slider.New('B', 255, ui.Style().Sliders.B...),
		}, "RGB")
}

func CMYK() *Model {
	return New(
		[]slider.Model{
			slider.New('C', 100, ui.Style().Sliders.C...),
			slider.New('M', 100, ui.Style().Sliders.M...),
			slider.New('Y', 100, ui.Style().Sliders.Y...),
			slider.New('K', 100, ui.Style().Sliders.K...),
		}, "CMYK")
}

func HSL() *Model {
	return New(
		[]slider.Model{
			slider.New('H', 360, ui.Style().Sliders.H...),
			slider.New('S', 100, ui.Style().Sliders.S...),
			slider.New('L', 100, ui.Style().Sliders.L...),
		}, "HSL")
}