aboutsummaryrefslogtreecommitdiff
path: root/colortemp.go
diff options
context:
space:
mode:
Diffstat (limited to 'colortemp.go')
-rw-r--r--colortemp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/colortemp.go b/colortemp.go
index a708a0b..8cf3454 100644
--- a/colortemp.go
+++ b/colortemp.go
@@ -43,7 +43,7 @@ func getDesiredColorTemperature(t time.Time) ColorTemperature {
// 500 <=> 2000K
// =============
// 347 4500
-func translateCtForLight(ct ColorTemperature, light hue.Light) uint16 {
+func (ct ColorTemperature) TranslateForLight(light hue.Light) uint16 {
divisor := 12.968
scaled := float64(ct) / divisor
inverted := 500 - scaled + 153