You are browsing as a guest. Sign up (or log in) to start making projects!

Space Screensaver

  • 8 Devlogs
  • 4 Total hours

A simple screensaver that displays basic information such as the time, and looks beautiful! Space themed! Full screen my screensaver tab, extend the display timeout on your device, and enjoy.

Ship #1

I have made a simple screensaver that has a time-based changing screen. The sun and moon (depending on whether it is day or night at your location) go across the sky in a parabola shape, and the time also moves to prevent screen burn. A list of features are below:
- Sun/Moon changes depending on time of day
- Sun/Moon rises and falls in an arc
- Background changes depending on day or night
- Spots fade in and out to assist with screen saving
- Time and Date
- Time and Date header randomly moves vertically
- No particles mode
- Works on different sized screens - tested with zooming in and out, and on computer and mobile!
I am especially proud of how the moon/sun moves in an arc over the sky, as I had only recently learned parabolas in maths, and I was happy to be able to use that knowledge.
I have also never really used too much JavaScript before, so this was by far my largest project for JavaScript.
I really hope you like this! If you want, feel free to see this as a new tab or home button on your browser, to watch the moon or sun slowly go across the sky!
Note: The demonstration screenshot says 3am but that is for testing it works past midnight from the console.

  • 8 devlogs
  • 4h
  • 4.65x multiplier
  • 19 Stardust
Try project → See source code →
Open comments for this post

32m 10s logged

Ready to Ship!!

I have added:

  • Refinements to the screensaver and the code
  • Added comments to the code
  • Touched up and improved the README
  • Fixed the problem where the sun/moon was covering up text.
0
0
3
Open comments for this post

21m 57s logged

More changes to behind the scenes, and I added a page that is the same, without the particles, but with a warning that can increase the risk of screen burn. I also added an image to the read me. The new page can be accessed by clicking on the sun or moon, and reverted by doing the same.

0
0
4
Open comments for this post

21m 22s logged

I have been doing quite a few things behind-the-scenes with the code. The most visible change, however, was the vertical randomisation of the header location. I realised the time/date could burn in, so it now jumps up and down slightly, enough to change pixels sometimes.

0
0
3
Open comments for this post

1h 1m 42s logged

I have been hard at work and now I have managed the following feats:

  • A background image that changes with the moon and the sun depending on the time of day.
  • 3 dots (that look like stars at night, and I might change it for day, but for now they are just circles too) that randomly fade in and out to assist with screensaving. The randomisation and positioning took a while, and it is hard to work on positions for images that small.
  • My final feat was adding text that shows the time and date (live-updates using the JavaScript).
0
0
1
Open comments for this post

17m 4s logged

That took all of my brain power. After the width calculations, this was slightly easier, also because I have a basic understanding of parabolas, and coordinates on software but it still had me scratching my head so much 🤣. The moon and sun now go across an entire cycle during the day and night (I have defined night as a time when it starts getting dark, at least where I am which is 7pm). At 6am it switches back to the sun, and does the parabola again.

0
0
1
Open comments for this post

17m 39s logged

I have got it so during the day, the sun will show on the screen. At night time, the moon shows. This is quite a big feat as I haven’t done much with JavaScript before. I have started doing equations to calculate the position depending on the minutes past 12am or 12pm (this time is also local to the browser, not my server).

0
0
3
Open comments for this post

27m 25s logged

I have created the repo, some basic JavaScript to keep track of the hour of day (to have a different display for day and night) and a video of the moon. However, the video is quite shaky, and there isn’t a really good way to implement this for the screensaver, so I am considering switching to an image of a moon, which I will then position using JavaScript, and the time of day. I can do the same with the sun. I will attempt this, and I will try using my new-found parabola skills learnt at school to write quadratic formulas to get the rising and falling of the moon right, especially for different scale screens.

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…