From 7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 4 Jul 2015 23:46:13 -0400 Subject: Style fixes --- xsft.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xsft.py') 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 -- cgit