aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2015-07-04 23:46:13 -0400
committerNicholas Bishop <nicholasbishop@gmail.com>2015-07-04 23:46:13 -0400
commit7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad (patch)
treef3d918ab748d77cd3afe208ec5dc2448ddcc9549
parentAdd main function (diff)
downloadxbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.tar.gz
xbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.tar.bz2
xbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.zip
Style fixes
-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