-
-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Description
Hi,
right now the parameters min_brightness
and max_brightness
serve - when set - as new limits for the calculation of the actual brightness, e.g. when min_brightness is 80 and max_brightness is 100 and calculated brightness is 50, the actual brightness will be 90 (50% between 80 and 100). Is it possible to add new parameters which do not influence the calculation, but limit the return value?
pseudo-code:
if calculatedBrightness < minBrightness return(minBrightness)
if calculatedBrightness > maxBrightness return(maxBrightness)
return(calculatedBrightness)
min | 0 | 80 | 80 |
---|---|---|---|
max | 100 | 100 | 100 |
% | calculated | calculated now | should be |
0 | 0 | 80 | 80 |
5 | 5 | 81 | 80 |
10 | 10 | 82 | 80 |
20 | 20 | 84 | 80 |
30 | 30 | 86 | 80 |
40 | 40 | 88 | 80 |
50 | 50 | 90 | 80 |
60 | 60 | 92 | 80 |
70 | 70 | 94 | 80 |
80 | 80 | 96 | 80 |
90 | 90 | 98 | 90 |
100 | 100 | 100 | 100 |
Thanks for this great addon!
Robert
hebgit, euinor, RubenKelevra and th3w1zard1