Skip to content

erdry/a-sun-day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Sun Day ☀️🌙

A meditative generative landscape coded in p5.js

🌐 View Live | 🧑‍💻 View Source


🌄 Overview

A Sun Day is a generative art sketch that visualizes the calm rhythm of nature — a slow sunrise and sunset over mountainous terrain, accompanied by ambient tones and shifting poetry. Built with p5.js, this piece is part of my creative coding portfolio to explore how code can create emotion.

The project combines:

  • Animated day–night cycles
  • Randomized generative mountains
  • Poetic lines that follow the time of day
  • Ambient sound generated algorithmically
  • UI sliders to control pace and terrain
  • Elegant minimal UI with subtle textures

🎨 Features

  • 🌅 Smooth, endless sun/moon animation
  • 🏔️ Procedural mountain layers with random seed variation
  • 🌟 Night stars and reflections
  • 🎚️ Controls for speed and mountain reshaping
  • ✍️ Generative poetry line fades tied to time
  • 🔉 Ambient sound using sine oscillator + reverb
  • 🌐 Responsive layout & mobile-friendly controls
  • 💡 Elegant UI design and minimalist aesthetic

🛠️ Built With


📸 Screenshot

screenshot

Want to try a different look? Change the seed, slow the time, or wait until night...


🚀 How to Use

To run locally:

git clone https://github.com/yourusername/a-sun-day.git
cd a-sun-day
# Open index.html in your browser

About

Trying to dive into Creative Coding. Created this peace using p5.js guided by ChatGPT in under 15min

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors