mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix python 3 error & lgtm alert
This commit is contained in:
parent
85e2bc9fb8
commit
08de6b7831
@ -1,3 +1,4 @@
|
||||
from __future__ import division
|
||||
import hyperion, time, colorsys, math
|
||||
|
||||
hyperion.imageMinSize(64, 64)
|
||||
@ -25,7 +26,7 @@ for x in range(width):
|
||||
|
||||
while not hyperion.abort():
|
||||
ledData = bytearray()
|
||||
mod = time.clock() * 100
|
||||
mod = time.process_time() * 100
|
||||
for x in range(height):
|
||||
for y in range(width):
|
||||
ledData += pal[int((plasma[y][x] + mod) % 256)]
|
||||
|
Loading…
Reference in New Issue
Block a user