mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Fixed Overshoot at end
This commit is contained in:
3
2D.py
3
2D.py
@@ -101,7 +101,7 @@ timelineStep = Width/totalTime
|
||||
while True:
|
||||
i = 0
|
||||
lastTime = 0
|
||||
while i <= len(meanTime):
|
||||
while i < len(meanTime):
|
||||
if(i == 0):
|
||||
pygame.draw.circle(screen, (255,0,0), (WidthMiddle+ail[0], Height-ele[0]), Pixelsize)
|
||||
pygame.draw.circle(screen, (255,0,0), (rud[0], Height-thr[0]), Pixelsize)
|
||||
@@ -124,6 +124,7 @@ while True:
|
||||
pygame.draw.rect(screen, (0,255,0), (0, Height, (int(time.time()*1000)-startTime)*timelineStep, 1))
|
||||
pygame.display.flip()
|
||||
i+=1
|
||||
if i < len(meanTime):
|
||||
lastTime += meanTime[i]
|
||||
|
||||
for e in pygame.event.get():
|
||||
|
||||
Reference in New Issue
Block a user