Commit f032bfbc authored by gijs's avatar gijs

Updated timing

parent 67e36ad8
......@@ -14,8 +14,8 @@ sources = [
]
fps = 25
still = [0, .5, 3]
transition = .5
still = [0, 0, 0, 3]
transition = [.75,.75, .75, .5]
def parse_viewbox (viewboxstring):
pattern = re.compile(r'(-?[\d\.]+) (-?[\d\.]+) (-?[\d\.]+) (-?[\d\.]+)')
......@@ -93,8 +93,8 @@ for drawing, target in sources:
for k, center in enumerate(keypoints):
if k > 0:
for i in range(framecount(transition)):
t = i / float(framecount(transition))
for i in range(framecount(transition[min(k, len(transition) - 1)])):
t = i / float(framecount(transition[min(k, len(transition) - 1)]))
d = keypoints[k].real - keypoints[k-1].real
x = translation[0] - keypoints[k-1].real - (t * d) + (float(width) / 2)
y = translation[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment