Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Advent Snow - with the help of HTML 5

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Advent Snow - with the help of HTML 5

Post by mcrossley »

I know advent doesn't offically start until tomorrow, but the kids started their choclate calendars today, so...

HTML5 Snow! I reworked an old script I found on the net to work a bit better and auto re-size to your page background size.

You should just be able to include the script in your HTML5 page and everything else should 'happen' by seasonal magic.

Demo and source here.
User avatar
beelzebubs
Posts: 62
Joined: Sun 04 Oct 2009 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Sweden
Contact:

Re: Advent Snow - with the help of HTML 5

Post by beelzebubs »

mcrossley wrote:I know advent doesn't offically start until tomorrow, but the kids started their choclate calendars today, so...

HTML5 Snow! I reworked an old script I found on the net to work a bit better and auto re-size to your page background size.

You should just be able to include the script in your HTML5 page and everything else should 'happen' by seasonal magic.

Demo and source here.
Nice script, but is it possible to have snowflakes instead?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Advent Snow - with the help of HTML 5

Post by mcrossley »

Well you could... either use a graphics file for each flake (or draw a flake on the canvas) and resize it for distance, or use an star character '*'. I leave that as an exercise for you though, there are lots of HTML5 snowfall scripts out there, some of which use either of these methods - or full 3D modelling! I just used something simple and I'm going to leave it alone now - I fiddle around with these things too much!
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Advent Snow - with the help of HTML 5

Post by mcrossley »

Doh! I could leave it alone - it now produces a rather over the top in detail snowflake! Pure drawing, no graphics files.

http://www.wilmslowastro.com/html5/snow/HTML5_Snow.htm
duke

Re: Advent Snow - with the help of HTML 5

Post by duke »

What happened to:
and I'm going to leave it alone now - I fiddle around with these things too much!
Didn't think you would leave it for long ;)
Post Reply