[fix] clitools dummy generator should send white points

This commit is contained in:
alban 2020-10-13 22:02:20 +02:00
parent df068b8e30
commit 8e9cd509ab
1 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ Use it to test your filters and outputs
LICENCE : CC
by cocoa
by cocoa
'''
@ -28,17 +28,17 @@ def debug(*args, **kwargs):
return
print(*args, file=sys.stderr, **kwargs)
argsparser = argparse.ArgumentParser(description="Dummy generator")
argsparser = argparse.ArgumentParser(description="dummy generator")
argsparser.add_argument("-f","--fps",help="Frame Per Second",default=30,type=int)
argsparser.add_argument("-s","--speed",help="point per frame progress",default=3,type=int)
argsparser.add_argument("-v","--verbose",action="store_true",help="Verbose output")
args = argsparser.parse_args()
args = argsparser.parse_args()
fps=args.fps
verbose=args.verbose
optimal_looptime = 1 / fps
debug(name+" optimal looptime "+str(optimal_looptime))
color = 65280
color = 16777215
square = [[100.0, 100.0, color], [100.0, 500.0, color], [500.0, 500.0, color], [500.0, 100.0, color], [100.0, 100.0, color]]
line =[]
for i in range(00,800,int(800/120)):
@ -71,7 +71,7 @@ mire = [
[400,450,color],
]
shape = mire
shape = mire
while True:
@ -81,5 +81,5 @@ while True:
if( looptime < optimal_looptime ):
time.sleep( optimal_looptime - looptime)
debug(name+" micro sleep:"+str( optimal_looptime - looptime))