Diplotocus logoΒΆ
This example uses the scale() animation to animate svg plot objects.
import matplotlib.pyplot as plt
import diplotocus as dpl
styles = [
{'fc': '#c96727','lw':0},
{'fc': '#296618','lw':0},
{'fc': '#3a7e28','lw':0},
{'fc': '#26588f','ec': '#26588f','lw': 1.25}
]
svgs = [
{'style':0, 'path':"M146.04,314.09c2.6-1.8-2.7-11.8-5.5-12.1-2.8-.3-9.4,10.3-6.9,12.1,2.4,1.8,9.9,1.8,12.4,0Z"},
{'style':0, 'path':"M210.54,301.29c4.1-3.3-6.8-15-10.7-14.7s-7.7,14.5-6.3,18,12.8,0,17-3.3Z"},
{'style':0, 'path':"M271.94,277.99c4.3-5-12.1-16.9-16.9-15.7-4.7,1.2-8.8,22.2-3.7,23.7,5.1,1.4,16.2-3,20.6-8Z"},
{'style':0, 'path':"M328.14,233.39c2.9-7.4-15.9-15.1-21.9-13.6s-7,17.4-.9,26.8c6.1,9.5,19.9-5.8,22.8-13.2Z"},
{'style':1, 'path':"M161.04,377.49c-7.2,3.8,8.2,18.3,14.7,18.3s18.5-19.4,12.5-22.1c-6.1-2.7-20,0-27.2,3.8Z"},
{'style':1, 'path':"M393.64,368.59c0,9.5,10.5,23.8,15.3,23.8s16.7-80.9,8.5-74.5c-8.2,6.4-23.8,41.2-23.8,50.7Z"},
{'style':2, 'path':"M423.64,43.29c-.9-13.5-8.9-29.2-26.1-23.5-17.1,5.7-46.4,18.4-43,35.3,3.4,16.9,39.1,10.3,35.5,41.9-1.3,19.1-4.1,209.5-258.9,223.8-45.7,3.2-15.6,75.1,6.4,75.1s-1.3-21.5,22.9-24.8c24.2-3.3,122.8-12.3,159.4-20.2,36.6-7.9,23.1,45,48.5,45,17.1,0,14.5-42.5,44-92.2,29.5-49.8,12-250.3,11.3-260.4Zm-31.1,2.5c-2.7,0-4.8-2.2-4.8-4.8s2.2-4.8,4.8-4.8,4.8,2.2,4.8,4.8-2.2,4.8-4.8,4.8Z"},
{'style':3, 'path':"M100.94,416.49l1.6-.3,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,1.2-.2,.4-.8-.2-.8-.4-1.1-.7-1.3-.8-.9-1.2-.8-2.7-1.7-1.3-.7-1.2-.8-1-.9-1.5-.8-1-.8-1.3-.7-1.3-.8-.8-.8-1-.8-.8-1.1-.8-1.3-1.1-1.4-1.1-1.3-.8-1.2,.2-1-.3-1.1-.1-1.3,.3-1.2,.6-.9,.8-.9,.2-1,.8-.6,.9-.6,.4-.8,1.1-.5,.6-.5,.7-1,1.3-.4,1.3-.8,1.4-.5,1.8-.3,1.3-1,2.2-.7Z"}
]
body = []
spikes = []
title = []
for i,svg in enumerate(svgs):
svg_obj = dpl.svg(data=svg['path'],**styles[svg['style']])
if svg['style'] == 0:
svg_obj.scale(start_scale=0,end_scale=1,delay=i*35,duration=30,easing=dpl.easings.easeCubicBezier(.55,.42,.55,1.62))
spikes.append(svg_obj)
elif svg['style'] == 3:
svg_obj.scale(start_scale=0,end_scale=1,delay=i*5,duration=100)
title.append(svg_obj)
else:
svg_obj.plot(duration=1)
body.append(svg_obj)
fig, ax = plt.subplots()
ax.set_aspect('equal')
ax.set_xlim(0,510)
ax.set_ylim(510,0)
tl = dpl.Timeline(fig=fig,noaxis=True,dpi=300,transparent=True)
tl.animate(spikes + title + body,easing=dpl.easings.easeOutBack())
tl.save_video(path='../../_static/examples/logo.mp4',speed=4)