From 80621a9886218333e29b8f35ad97a6a3a81ee4ec Mon Sep 17 00:00:00 2001 From: flick0 Date: Wed, 13 Dec 2023 21:10:43 +0000 Subject: [PATCH] allow float values for speed --- unimatrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unimatrix.py b/unimatrix.py index 098f928..22519a7 100755 --- a/unimatrix.py +++ b/unimatrix.py @@ -196,7 +196,7 @@ parser.add_argument('-s', '--speed', help='speed, integer up to 100. Default=85', default=85, - type=int) + type=float) parser.add_argument('-t', '--time', help='time. See details below', type=int) @@ -252,7 +252,7 @@ start_bg = colors_str[args.bg_color] speed = args.speed -start_delay = (100 - speed) * 10 +start_delay = int((100 - speed) * 10) runtime = None