An open API service indexing awesome lists of open source software.

https://github.com/kavishkafx/bouncing-ball-inside-a-circle

A Pygame-based animation where a ball bounces inside a circular boundary. The animation is rendered and exported as a video using MoviePy.
https://github.com/kavishkafx/bouncing-ball-inside-a-circle

bouncing-ball moviepy pygame python

Last synced: about 2 months ago
JSON representation

A Pygame-based animation where a ball bounces inside a circular boundary. The animation is rendered and exported as a video using MoviePy.

Awesome Lists containing this project

README

        

## Ball Animation with Circular Mask

This Python project creates an animation of a bouncing ball inside a circle, where everything outside the circle is masked out and transparent.

## Requirements

- Python 3.x
- `pygame`
- `moviepy`

```
ball-animation/

├── main.py
├── setup.py
├── README.md
├── output_video_20241120_174717.mp4
└── output_video_20241120_180454.mp4
```
- sample videos & images:

- ![mp4](masked.mp4)
- ![mp4](output.mp4)
- ![image](image.png)