/anima

Drawings and animations

Primary LanguagePython

Drawings and animations using Python

Tree

Examples of randomly generated trees of depth 14, max deviation angle pi/8 and child branch length ratio between [0.5, 0.8]:

plot plot

Animated tree drawing

Alt Text

Random Maze Generation

The algorithm used to generate the maze is randomized DFS. We start with a grid having walls everywhere between any two cells. We use DFS to open walls by randomly choosing a neighbour.

Alt Text

Maze Solving

Use DFS to solve the generated maze.

Alt Text

Projectile motion

Simulation of a projectile motion based on Newton's second law of motion.

Alt Text

Fluid simulation

Simulation of fluid dynamics using Navier-Stokes equations.

Fire in air

Alt Text

Smoke in air

Alt Text