A lightweight starfield animation built using p5.js.
This project was inspired by The Coding Train and their creative coding challenges.
It recreates the classic flying-through-space effect using simple JavaScript and drawing logic.
A visual demonstration of the starfield effect is included in the assets/images/ folder.
- Dynamic starfield animation
- Depth-based motion for a 3D feel
- Smooth rendering using the p5.js drawing loop
- Clean and modular project structure
Starfield/ │── index.html │── README.md │── .gitignore │ ├── assets/ │ └── images/ │ └── screenshot.png │ ├── src/ │ ├── star.js │ └── sketch.js │ └── libs/ └── p5.min.js
- Clone or download the repository.
- Open
index.htmlin any modern web browser. - Enjoy the animation.
- HTML5 for structure
- p5.js for graphics and animation
- JavaScript for logic
This project is inspired by The Coding Train, whose videos make creative coding fun and accessible.
This project is free to use, do whatever you want