[fix] exceptions for redilisys colors filter
This commit is contained in:
parent
0b7ad2d75b
commit
df068b8e30
6
clitools/filters/redilysis_colors.py
Normal file → Executable file
6
clitools/filters/redilysis_colors.py
Normal file → Executable file
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# -*- mode: Python -*-
|
# -*- mode: Python -*-
|
||||||
@ -145,8 +144,11 @@ def default( pl ):
|
|||||||
colorTuple = int2rgb(ocolor)
|
colorTuple = int2rgb(ocolor)
|
||||||
x = point[0]
|
x = point[0]
|
||||||
dist = abs(x - max_width/2)
|
dist = abs(x - max_width/2)
|
||||||
key = int(2* dist / max_width * 8)
|
key = int(2* dist / max_width * 7)
|
||||||
|
try:
|
||||||
power = spect[key] / spect10Correct[key] * chaos
|
power = spect[key] / spect10Correct[key] * chaos
|
||||||
|
except:
|
||||||
|
pass
|
||||||
color = []
|
color = []
|
||||||
for i in colorTuple:
|
for i in colorTuple:
|
||||||
new_color = int(i * power)
|
new_color = int(i * power)
|
||||||
|
Loading…
Reference in New Issue
Block a user