models

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GamutA = Gamut{XYPoint{0.704, 0.296}, XYPoint{0.2151, 0.7106}, XYPoint{0.138, 0.08}}

GamutA LivingColors Iris, Bloom, Aura, LightStrips

View Source
var GamutB = Gamut{XYPoint{0.675, 0.322}, XYPoint{0.4091, 0.518}, XYPoint{0.167, 0.04}}

GamutB Hue A19 bulbs

View Source
var GamutC = Gamut{XYPoint{0.692, 0.308}, XYPoint{0.17, 0.7}, XYPoint{0.153, 0.048}}

GamutC Hue BR30, A19 (Gen 3), Hue Go, LightStrips plus

Functions

This section is empty.

Types

type BluetoothControlled

type BluetoothControlled interface {
	Disconnect() error
	// contains filtered or unexported methods
}

type CenturaColorSpot

type CenturaColorSpot struct {
	// contains filtered or unexported fields
}

func NewCenturaColorSpot

func NewCenturaColorSpot(device *bluetooth.Device) (*CenturaColorSpot, error)

func (*CenturaColorSpot) Brightness

func (c *CenturaColorSpot) Brightness() float64

func (*CenturaColorSpot) Color

func (c *CenturaColorSpot) Color() color.Color

func (*CenturaColorSpot) Disconnect

func (c *CenturaColorSpot) Disconnect() error

func (*CenturaColorSpot) Model

func (c *CenturaColorSpot) Model() string

func (*CenturaColorSpot) Name

func (c *CenturaColorSpot) Name() string

func (*CenturaColorSpot) Off

func (c *CenturaColorSpot) Off()

func (*CenturaColorSpot) On

func (c *CenturaColorSpot) On()

func (*CenturaColorSpot) Powered

func (c *CenturaColorSpot) Powered() bool

func (*CenturaColorSpot) SetBrightness

func (c *CenturaColorSpot) SetBrightness(b float64)

func (*CenturaColorSpot) SetColor

func (c *CenturaColorSpot) SetColor(colour color.Color)

func (*CenturaColorSpot) SetName

func (c *CenturaColorSpot) SetName(name string)

func (*CenturaColorSpot) SetTemperature

func (c *CenturaColorSpot) SetTemperature(temperature uint16)

func (*CenturaColorSpot) Temperature

func (c *CenturaColorSpot) Temperature() uint16

type Gamut

type Gamut [3]XYPoint

func GetGamutForModel

func GetGamutForModel(model string) Gamut

func (Gamut) ColorToXY

func (ga Gamut) ColorToXY(c color.Color) XYPoint

func (Gamut) XYYToColor

func (ga Gamut) XYYToColor(xy XYPoint, brightness float64) color.Color

type XYPoint

type XYPoint [2]float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL