diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-07-04 23:46:13 -0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-07-04 23:46:13 -0400 |
commit | 7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad (patch) | |
tree | f3d918ab748d77cd3afe208ec5dc2448ddcc9549 /xsft.py | |
parent | Add main function (diff) | |
download | xbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.tar.gz xbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.tar.bz2 xbright-7c1a3727c751bd0d510b0cd6b2537c5a6feb50ad.zip |
Style fixes
Diffstat (limited to 'xsft.py')
-rwxr-xr-x | xsft.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |