lib

package
v0.0.0-...-d0bc179 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorTemperature

func ColorTemperature(kelvin uint16, luminance float64) colorful.Color

func LinearRGB

func LinearRGB(r, g, b uint8) colorful.Color

LinearRGB is an easier way to invoke LinearRGB, using ints instead of floats.

func MiredToKelvin

func MiredToKelvin(mired uint16) uint16

MiredToKelvin converts a Mired color to Kelvin degrees. Home Assistant sends values between 156-500, which correspond to a range of approximately 2000-6500 kelvins.

func RGBA

func RGBA(c colorful.Color) uint32

RGBA returns a color encoded as a 32-bit unsigned integer in ARGB order.

func Rad

func Rad(d float64) float64

Rad converts degrees to radians.

Types

This section is empty.

Jump to

Keyboard shortcuts

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