Documentation ¶
Index ¶
- Constants
- Variables
- type Change
- type PaletteConfig
- type State
- func (s *State) Add() (ok bool)
- func (s *State) Background() tcell.Color
- func (s *State) BaseColor() *noire.Color
- func (s *State) Flush() Change
- func (s *State) HSVString() string
- func (s *State) HexString() string
- func (s *State) Hue() float64
- func (s *State) IsNew() bool
- func (s *State) Len() int
- func (s *State) Name() string
- func (s *State) Next()
- func (s *State) Path() string
- func (s *State) Pos() int
- func (s *State) Prev()
- func (s *State) RGBString() string
- func (s *State) Remove() (ok bool)
- func (s *State) Saturation() float64
- func (s *State) Save() error
- func (s *State) Selected() *subState
- func (s *State) SetHue(n float64)
- func (s *State) SetSaturation(n float64)
- func (s *State) SetValue(n float64)
- func (s *State) SubColors() []tcell.Color
- func (s *State) TableString() string
- func (s *State) TermString() string
- func (s *State) Value() float64
Constants ¶
View Source
const AllChanged = SelectedChanged | HueChanged | SaturationChanged | ValueChanged
Variables ¶
View Source
var DefaultPalettePath = defaultPalettePath()
Functions ¶
This section is empty.
Types ¶
type PaletteConfig ¶
type PaletteConfig struct { Name string `toml:"name"` Background paletteColor `toml:"background"` Colors []paletteColor `toml:"color"` }
type State ¶
type State struct {
// contains filtered or unexported fields
}
func Load ¶
Load attempts to read a stored state from disk. If no stored state exists or is readable, a default State and error will be returned.
func NewDefault ¶
func NewDefault() *State
NewDefault returns a State initialized with default colors
func (*State) Background ¶
func (*State) IsNew ¶
IsNew returns whether this state is newly created. returns false if state was successfully loaded from file.
func (*State) Saturation ¶
func (*State) SetSaturation ¶
func (*State) TableString ¶
TableString returns an ascii table formatted representation of the current State
func (*State) TermString ¶
Click to show internal directories.
Click to hide internal directories.