HTML 5 Particle Demo

September 16th, 2011 by Slav

This is my first HTML 5 demo

It was build using Canvas so should work on most of modern browsers that support HTML5.

Just a simple particle wall, with randomly coloured particles of red-ish hue, reacting to mouse movement (or ‘wind effect’ if you will) also if you press and hold the mouse, they will change in intensity.

I’ve started building this demo as a part of the “playtime” during the HTML 5 workshop called “Intro to creative Javascript and HTML 5 Canvas” with Seb Lee-Delisle at FOTB conference in Brighton, finished it today, (added a background and a dynamic resizing based on the window dimensions).

The positive thing about working with HTML 5 is that it made me very thankful for Flash plugin. No hacking around for unsuported features, no shims, no version degradation fallbacks… Just works in every browser. Haven’t really appreciated this until I’ve experienced html 5. Another thing that I become to appreciate is ActionScript as a language. OOP features that creates supports for encapsulation such as strong typing, private / protected variables, supports for real classes.

It felt like traveling back in time , to a time of flash plugin version 5/6 and AS2, when its scripting capabilities were quite limited, and flash multimedia / display capabilities were quite crude, compared to it’s current capabilities.
Fortunately , there seem to be a solution! It’s strongly typed modern language / platform called haXe (similar to C# or Java) which can output to several target platforms / languages, one of them being JavaScript. Good news is that my programing IDE of choice (FDT) will support this in the next version which is comming very soon!

Posted in FDT, html5, particles, Personal

39 Responses

  1. ben

    nice work sir!

    now just to make them look a bit blurry!
    am curious to see how draw image would compare performance wise to the draw arc method…

    :)

  2. how to lose weight

    Hi mates, nice piece of writing and fastidious urging
    commented at this place, I am really enjoying by these.

  3. weight loss diet plan for men

    They come with a guarantee and help you to set your
    own realistic goals and achieve them not on time but ahead of time.
    But you important to mother to drink enough of water to prevent you from dehydrated, and some
    more you also lose apart of your body fluid. This sort of effect can also happen if you’ve suddenly taken up a strenuous new sport or hobby, such as running, cycling or dancing.

    my webpage – weight loss diet plan for men

  4. facebook game cheat

    It’s the best time to make some plans for the future and it’s time
    to be happy. I’ve read this post and if I could I wish to suggest you few interesting things or suggestions. Maybe you could write next articles referring to this article. I desire to read more things about it!

  5. lemonade cleanse

    Great blog here! Additionally your site quite a bit up fast!
    What web host are you the usage of? Can I am getting your associate hyperlink on your host?
    I want my website loaded up as fast as yours lol

  6. fat burning furnace

    If you would like to get a great deal from this
    paragraph then you have to apply these techniques to your won weblog.

  7. running to lose weight

    Helpful info. Lucky me I found your website unintentionally, and I’m shocked why this coincidence didn’t happened earlier!
    I bookmarked it.

  8. Quemando y gozando

    I like the valuable information you provide in your articles.
    I’ll bookmark your weblog and check again here regularly. I’m quite certain I’ll learn many new stuff right here! Best of luck for the next!

  9. fat loss factor program review

    Ahaa, its nice discussion on the topic of this paragraph at this place at this webpage, I have read all
    that, so at this time me also commenting at this place.

  10. lose 10 Pounds in 3 weeks

    An interesting discussion is definitely worth
    comment. I do believe that you ought to write more on this
    subject, it might not be a taboo subject but usually people do not talk about these subjects.
    To the next! Best wishes!!

  11. ejercicios quema grasa

    Howdy this is kinda of off topic but I was
    wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be enormously appreciated!

  12. Renee

    An interesting discussion is definitely worth comment.
    I believe that you need to write more about this topic, it may not be
    a taboo matter but usually people don’t discuss such topics. To the next! Cheers!!

  13. z code system

    I got this web page from my pal who told me concerning this web
    page and at the moment this time I am browsing this web site and reading very informative
    posts here.

  14. extreme no

    Hi colleagues, how is everything, and what you desire to say concerning this piece of writing, in
    my view its truly amazing for me.

  15. Ultra slim patch

    I am no longer certain where you are getting your info, but good topic.
    I must spend some time finding out more or understanding more.
    Thanks for great info I used to be on the lookout for this
    information for my mission.

  16. Vernell

    This is very interesting, You’re a very skilled blogger.
    I’ve joined your feed and look forward to seeking more of your magnificent
    post. Also, I’ve shared your website in my social networks!

  17. Dawn

    Hey, I think your blog might be having browser compatibility issues.
    When I look at your website in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, superb
    blog!

  18. www.youtube.com

    I will right away seize your rss as I can’t in finding your e-mail subscription link or e-newsletter service.
    Do you’ve any? Kindly allow me understand so that I
    may subscribe. Thanks.

  19. losing weight blog

    However, thankfully that this is the very best season for
    dieting. There are so many new diets currently available that people forget how effective traditional ones are.
    As it is, a BMI containing already exceeded to 30 signifies that a
    person is already diagnosed as a possible
    obese individual. Twinlab products focuses more about
    vitamins, minerals, herbal and high performance based
    sports nutritional products. However, it absolutely was all about my wrong idea of diets overall,
    I thought these were difficulty to maintain and
    not as useful as they’re thought to be.

  20. linux unzip zip file

    My family always say that I am wasting my time here at net,
    however I know I am getting familiarity all the time by reading such pleasant content.

  21. youtube.com

    Wonderful work! That is the kind of info that are meant to be shared around the web.
    Disgrace on Google for now not positioning this post higher!
    Come on over and visit my website . Thanks =)

  22. regarder film

    I really like what you guys tend to be up too. This sort of clever work and exposure!
    Keep up the fantastic works guys I’ve included you guys to my personal blogroll.

  23. youtube.com

    Thanks for some other excellent article. Where else could anyone get that type of
    info in such a perfect way of writing? I’ve a presentation subsequent week, and I’m on the look for such info.

  24. weight loss workout daily

    Quality posts is the important to interest the people to visit the
    web page, that’s what this site is providing.

  25. http://download.cnet.com/Free-YouTube-Downloader-Converter/3000-2071_4-75992755.html

    Thanks for sharing your thoughts. I truly appreciate your efforts and I will
    be waiting for your further write ups thank
    you once again.

  26. hl tag converter cs 1.6 download

    You really make it seem so easy with your presentation but I
    find this topic to be actually something that I think
    I would never understand. It seems too complicated and extremely broad for me.
    I’m looking forward for your next post, I will try to get the hang of it!

  27. youtube download manager

    certainly like your web site however you need to take a look
    at the spelling on several of your posts. A number of them
    are rife with spelling problems and I to find it very troublesome
    to tell the reality however I will certainly come
    again again.

    Also visit my webpage – youtube download manager

  28. http://lose-a-stone.blogspot.Com

    My brother recommended I might like this website. He was totally right.
    This post actually made my day. You cann’t imagine just how much time I had spent for this
    info! Thanks!

  29. www.edocr.com

    Fat Loss Factor Program is total with the following:.
    To build or gain muscle you have to successfully train your body through exercise.
    Although most of the ideas are typical sense, these are stuff you are not
    likely to get with diet guides, and they are solutions that can
    help you stop exceeding exactly the same behavioral patterns that triggered you obesity initially.
    ‘ Fat Loss Factor doesn’t make you starve or punish you into avoiding
    your favorite foods. The book is designed to be followed in
    2 phases lasting a total of 12 weeks from start
    to finish and includes a detailed eating plan
    as well as body sculpting fitness routines that go hand in hand with the diet to give the reader the energy they need while improving
    fat metabolism.

  30. how to lose weight

    Greetings! Very useful advice within this article! It’s
    the little changes which will make the largest changes.
    Thanks for sharing!

  31. http://www.youtube.com

    It’s appropriate time to make some plans for the longer
    term and it’s time to be happy. I’ve read this submit and if
    I may I wish to counsel you few interesting things or
    tips. Maybe you can write subsequent articles regarding this article.
    I desire to read more things approximately it!

    Here is my website free download youtube downloader (http://www.youtube.com)

  32. you tube video To mp3 converter

    certainly like your web site but you need to check
    the spelling on quite a few of your posts. A number of
    them are rife with spelling issues and I to find it very troublesome to inform the truth on the other hand I’ll surely come again again.

    Also visit my website – you tube video To mp3 converter

  33. youtube to avi

    I like what you guys tend to be up too.
    This kind of clever work and reporting! Keep up the wonderful works guys
    I’ve added you guys to blogroll.

    my blog post; youtube to avi

  34. website

    Wonderful, what a blog it is! This website provides helpful facts to us, keep it up.

  35. http://chefstricks.com/

    You could certainly see your expertise within the article
    you write. The world hopes for even more passionate writers like you who aren’t
    afraid to say how they believe. Always go after your heart.

  36. video 2 mp3

    Admiring the hard work you put into your blog
    and in depth information you offer. It’s nice to come across a blog every once
    in a while that isn’t the same unwanted rehashed material.
    Great read! I’ve saved your site and I’m adding your RSS feeds to
    my Google account.

    Also visit my homepage – video 2 mp3

  37. Dorine

    We absolutely love your blog and find many of your post’s to be just what I’m
    looking for. Does one offer guest writers to write content for you personally?
    I wouldn’t mind writing a post or elaborating on many of the subjects you write with regards to here.
    Again, awesome web log!

  38. http://www.youtube.com/

    Wow, this article is fastidious, my younger sister is analyzing these things,
    thus I am going to inform her.

    Here is my page: how To download from youtube (http://www.youtube.com/)

  39. download youtube downloader free

    It’s an amazing piece of writing designed for all the internet people; they
    will take benefit from it I am sure.

    Here is my web page download youtube downloader free