Documentation ¶
Index ¶
- Constants
- func Clamp(c *colorful.Color)
- func DummyGateway(host string) string
- func FromMirads(temp uint16, bri uint8) colorful.Color
- func GetHostPort(req *http.Request) (string, string)
- func GetNextTimeFrom(s string, t *time.Time) (*time.Time, error)
- func Hsv2Rainbow(h float64, s float64, v float64) colorful.Color
- func Linearize(v float64, gamma float64) float64
- func Maximize(c *colorful.Color)
- func RegisterApis(container *restful.Container, rootPath string, docString string, ...)
- func RgbToRgbw(c colorful.Color, mir uint16) (rgb colorful.Color, w float64)
- func RgbToRgbx(c colorful.Color, x colorful.Color) (rgb colorful.Color, x_val float64)
- func ToMirads(c colorful.Color) uint16
- func XCmpt(c colorful.Color, x colorful.Color) float64
Constants ¶
View Source
const ( SUNDAY dayOfWeekBitmask = 1 << iota SATURDAY FRIDAY THURSDAY WEDNESDAY TUESDAY MONDAY )
View Source
const DatetimeLayout = "2006-01-02T15:04:05"
Mon Jan 2 15:04:05 MST 2006
Variables ¶
This section is empty.
Functions ¶
func FromMirads ¶
func GetNextTimeFrom ¶
*
- See https://www.developers.meethue.com/documentation/datatypes-and-time-patterns#16_time_patterns
- for support time patterns.
func Hsv2Rainbow ¶
hsv2rgb_rainbow converted to operate on floats 0..1 from https://github.com/FastLED/FastLED/blob/master/hsv2rgb.cpp
func RegisterApis ¶
func RegisterApis(container *restful.Container, rootPath string, docString string, apis func(*restful.WebService))
Helper method to allow registering apis on the same endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.