Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

⭐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.

About

Python star gravity simulation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages