Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 662 Bytes

File metadata and controls

24 lines (18 loc) · 662 Bytes

⭐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

  1. Download the file mousegravity.py
  2. Run the file using Python
  3. Move the mouse to see stars getting attracted

Purpose : This project demonstrates a simple simulation of gravity using Python animation.