[init] merge other folder

This commit is contained in:
alban 2020-11-11 17:32:59 +01:00
parent 6d70ca0c32
commit d37efeb0fa
4 changed files with 247 additions and 5 deletions

View file

@ -162,8 +162,7 @@ try:
pointsList = ast.literal_eval(line)
# Do the filter
result = kaleidoscope( pointsList )
print( result, flush=True )
if len(result) : print( result, flush=True )
looptime = time.time() - start
# debug(name+" looptime:"+str(looptime))
if( looptime < optimal_looptime ):

8
filters/redilysis_colors.py Normal file → Executable file
View file

@ -1,4 +1,3 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# -*- mode: Python -*-
@ -145,8 +144,11 @@ def default( pl ):
colorTuple = int2rgb(ocolor)
x = point[0]
dist = abs(x - max_width/2)
key = int(2* dist / max_width * 8)
power = spect[key] / spect10Correct[key] * chaos
key = int(2* dist / max_width * 7)
try:
power = spect[key] / spect10Correct[key] * chaos
except:
pass
color = []
for i in colorTuple:
new_color = int(i * power)