README ¶Expand ▾ Collapse ▴
Package colorpicker provides simple widgets for selecting an RGBA color and for choosing one of a set of colors.
The PickerStyle type can be used to render a colorpicker (the state will be stored in a State). Colorpickers allow choosing specific RGBA values with sliders or providing an RGB hex code.
The MuxStyle type can be used to render a color multiplexer (the state will be stored in a MuxState). Color multiplexers provide a choice from among a set of colors.
- type C
- type D
- type MuxOption
- type MuxState
- type MuxStyle
- type PickerStyle
- type State
MuxOption is one choice for the value of a color multiplexer.
MuxState holds the state of a color multiplexer. A color multiplexer allows choosing from among a set of colors.
func NewMuxState ¶
NewMuxState creates a MuxState that will provide choices between the MuxOptions given as parameters.
MuxStyle renders a MuxState as a material design themed widget.
Mux creates a MuxStyle from a theme and a state.
type PickerStyle ¶
PickerStyle renders a color picker using material widgets.
Picker creates a pickerstyle from a theme and a state.
State is the state of a colorpicker.
Alpha returns the alpha value of the currently selected color.
Blue returns the blue value of the currently selected color.
Changed returns whether the color has changed since last frame.
Green returns the green value of the currently selected color.
Layout handles all state updates from the underlying widgets.
Red returns the red value of the currently selected color.