⭐Star Gravity Simulation
This project simulates stars moving in space that are attracted to the mouse cursor like a gravity field.
Description : The program generates stars at random positions on the screen. When the mouse moves near them, the stars move towards the cursor creating a gravity-like effect.
Features
- Random star generation
- Mouse interaction
- Gravity-like attraction
- Continuous animation
Technology Used
- Python
How to Run
- Download the file mousegravity.py
- Run the file using Python
- Move the mouse to see stars getting attracted
Purpose : This project demonstrates a simple simulation of gravity using Python animation.