Page 1 of 1
Advent Snow - with the help of HTML 5
Posted: Sat 01 Dec 2012 10:55 am
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.
Re: Advent Snow - with the help of HTML 5
Posted: Sat 01 Dec 2012 2:36 pm
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?
Re: Advent Snow - with the help of HTML 5
Posted: Sat 01 Dec 2012 4:41 pm
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!
Re: Advent Snow - with the help of HTML 5
Posted: Thu 06 Dec 2012 4:33 pm
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
Re: Advent Snow - with the help of HTML 5
Posted: Thu 06 Dec 2012 6:57 pm
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
