Commit a50b2ac6 authored by gijs's avatar gijs

Made transition bigger

parent 236cc00c
......@@ -9,12 +9,12 @@ import os.path
sources = [
('digital-city-poster-1080x1920.svg', '1080x1920'),
# ('digital-city-poster-1920x1080.svg', '1920x1080'),
# ('digital-city-poster-1920x2160.svg', '1920x2160')
('digital-city-poster-1920x1080.svg', '1920x1080'),
('digital-city-poster-1920x2160.svg', '1920x2160')
]
fps = 25
still = 3
still = [0, .5, 3]
transition = .5
def parse_viewbox (viewboxstring):
......@@ -103,14 +103,14 @@ for drawing, target in sources:
write_frame(f, svg, folder=os.path.join(target, 'svg'))
f += 1
for i in range(framecount(still)):
x = translation[0] + (-1 * (center.real - (float(width) / 2)))
y = translation[1]
animation['transform'] = 'translate({}, {})'.format(x, y)
get_group_by_label(svg, 'text')['style'] = 'display:inline;visibility:visible;'
write_frame(f, svg, folder=os.path.join(target, 'svg'))
f += 1
# print(path, 'translate({}, {})'.format(center.real - (width / 2), 0))
for i in range(framecount(still[min(k, len(still) - 1)])):
x = translation[0] + (-1 * (center.real - (float(width) / 2)))
y = translation[1]
animation['transform'] = 'translate({}, {})'.format(x, y)
get_group_by_label(svg, 'text')['style'] = 'display:inline;visibility:visible;'
write_frame(f, svg, folder=os.path.join(target, 'svg'))
f += 1
# print(path, 'translate({}, {})'.format(center.real - (width / 2), 0))
# output = svgwrite.Drawing(filename="frames/output.svg", size=(width, height))
\ No newline at end of file
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