Skip to content

Commit

Permalink
rounded keytimes in animate.py to 3 digits in order to produce slight…
Browse files Browse the repository at this point in the history
…ly smaller svg files
  • Loading branch information
hvfrancesco committed Apr 1, 2014
1 parent 9a56b45 commit 883066d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
n_of_frames = len(frames)
keyTimes = ""
for n in range(0, n_of_frames):
keyTimes += str(n/n_of_frames) + ";"
keyTimes += "%.3f" % (n/n_of_frames) + ";"
keyTimes += "1"
dur = (n_of_frames / fps)

Expand Down
Loading

0 comments on commit 883066d

Please sign in to comment.