This is a Starfield simulation built with Java and Swing. The simulation generates a moving starfield effect, where stars appear to move toward the observer, creating the illusion of a spaceship traveling through space.
- Dynamic star movement
- Smooth animation
- Customizable speed and star density
- Java 8 or higher
- Swing library (comes with Java)
- Clone this repository:
git clone https://github.com/muhammetcnli/Starfield.git
- Compile and run StarfieldCanvas.java
- Run the Java application to view the starfield in motion.
- Adjust the parameters to modify the star density and speed.
Feel free to fork the repository, make improvements, and submit pull requests!
This project is licensed under the MIT License.