Vector animations with Python
Overview
This data notebook shows how to create dynamic vector animations using Python. Two key libraries were used in this notebook:
The code snippets below show how to create basic vector shapes, build compositions, and implement animations using mathematical transformations.
Effect 1: Basic shapes composition
This example shows how to create a composition of basic shapes using Gizeh, featuring a red circle, a blue square, and a green triangle.
Technical specifications
Animation parameters:
Mathematical concepts:
Effect 2: Rotating circles animation
This animation generates a pattern of circles that rotate and change colours.
Technical specifications
Animation parameters:
Mathematical concepts:
Effect 3: Animated circles with rotation
This animation is generated by arranging 20 shrinking circles in a rotating pattern around a center point.
Technical specifications:
Animation parameters:
Mathematical concepts:
Effect 4: Colour pattern animation
This animation features an expanding circle pattern creating a vibrant and layered visual effect.
Technical specifications:
Animation parameters:
Mathematical concepts:
Effect 5: Bouncing ball animation
The code below create a bouncing ball with a shadow, where the ball moves horizontally and vertically in a sine wave motion.
Technical specifications:
Animation parameters:
Mathematical concepts:
Effect 6: Rotating triangle grid animation
This code generates an animated GIF of rotating triangles arranged in a grid, with each triangle changing colour over time.
Technical specifications:
Animation parameters:
Mathematical concepts:
Effect 7: Dynamic floating balls animation
The circles are filled with a slightly off-center radial gradient to create an impression of volume, with the colours, initial positions, and rotation centers randomly selected at the start.
Technical specifications:
Animation parameters:
Mathematical concepts:
Conclusion
This data app introduced the essentials of creating and animating vector graphics, covering shapes, colours, gradients, and transformations. By exploring coordinate systems and timing, it demonstrated techniques for building smooth, dynamic animations, offering a solid foundation for visually engaging projects.