Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPSLights ¶
func AddPSLights(l *chromaticity.LightResource, ps *kinet.PowerSupply, nextColor []*colorful.Color)
func LightsFrom ¶
func LightsFrom(ps *kinet.PowerSupply, nextColor []*colorful.Color) []chromaticity.Light
Types ¶
type Backend ¶
type Backend struct {
PowerSupplies []kinet.PowerSupply `json:"powerSupplies"`
NextColor map[string][]*colorful.Color `json:"-"`
CurrentColor map[string][]*colorful.Color `json:"-"`
Gamma float64 `json:"gamma"`
}
func (*Backend) DiscoverLights ¶
func (b *Backend) DiscoverLights(l *chromaticity.LightResource)
func (*Backend) ImportLights ¶
func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)
func (*Backend) PSSync ¶
func (b *Backend) PSSync(ps *kinet.PowerSupply)
type KinetLight ¶
type KinetLight struct {
*chromaticity.LightInfo
LightState *chromaticity.State `json:"state"`
Fixture *kinet.Fixture `json:"-"`
Backend `json:"-"`
NextColor *colorful.Color `json:"-"`
}
func (KinetLight) GetInfo ¶
func (k KinetLight) GetInfo() *chromaticity.LightInfo
func (KinetLight) GetNumPixels ¶
func (k KinetLight) GetNumPixels() uint16
func (KinetLight) GetState ¶
func (k KinetLight) GetState() *chromaticity.State
func (KinetLight) GetType ¶
func (k KinetLight) GetType() string
func (KinetLight) SetColor ¶
func (k KinetLight) SetColor(c colorful.Color)
func (KinetLight) SetColors ¶
func (k KinetLight) SetColors(c []colorful.Color)
Click to show internal directories.
Click to hide internal directories.