aboutsummaryrefslogtreecommitdiff
path: root/xsft.py
diff options
context:
space:
mode:
Diffstat (limited to 'xsft.py')
-rwxr-xr-xxsft.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/xsft.py b/xsft.py
index 3f175a5..0f411c9 100755
--- a/xsft.py
+++ b/xsft.py
@@ -34,8 +34,7 @@ def set_brightness_and_gamma(outputs, brightness, gamma):
def color_temperature_to_rgb(kelvin):
"""Adapted from tannerhelland.com/4435."""
- temp = kelvin / 100.0;
-
+ temp = kelvin / 100.0
if temp <= 66:
red = 255
@@ -52,7 +51,7 @@ def color_temperature_to_rgb(kelvin):
red = 329.698727446 * math.pow(red, -0.1332047592)
green = temp - 60
- green = 288.1221695283 * math.pow(green, -0.0755148492 )
+ green = 288.1221695283 * math.pow(green, -0.0755148492)
blue = 255
bgstack15