News for hackers. Stuff that matters.
Re:Ripple effect in HTML5 canvas by moron4hire on Wednesday February 23, 2011 @04:47PM (#2255966)
Wow, it's 2011 and this effect is now poorly implemented in the browser. Way to go, HTML5, way to go.
Re:Ripple effect in HTML5 canvas by cryptoz on Wednesday February 23, 2011 @04:54PM (#2255991)
While I agree that this particular demo is poorly done and doesn't really showcase HTML5 very well (see mr doob), there's a lot to be said for why it's important that it's running in the browser.

Pretty much every single computer that has a screen is capable of running this demo. Somewhere near a million new smartphones are being sold every day, collectively between the different platforms. Some of those run Java, some run Objective C, some run C#....

But they all run JavaScript.

All desktop computers, all laptops, all tablets, all smartphones...they all can run this demo. HTML5/JavaScript is much better poised to be "write once run everywhere" than Java ever was.

Re:Ripple effect in HTML5 canvas by pietro on Wednesday February 23, 2011 @05:35PM (#2256116)
My laptop is running the demo at 65% CPU. I'm pretty sure my iPad or phone wouldn't be able to run it for any meaningful definition of "run".
Re:Ripple effect in HTML5 canvas by cryptoz on Thursday February 24, 2011 @01:34PM (#2259182)
Sure, but look at the future a bit. I highly doubt iOS will ever run Java and I highly doubt Android will ever run C#. But hardware will get faster, and as that happens the demos performance will improve.

It may be a bit early to write 3D games or video editing software in JavaScript for iOS and Android and Windows all at the same time, so you've got to look to the future for that kind of excitement.

Re:Ripple effect in HTML5 canvas by mcav on Wednesday February 23, 2011 @06:17PM (#2256236)
Tested on my iPhone 4: 1.2 fps.

At least it doesn't crash.

Re:Ripple effect in HTML5 canvas by soljin2000 on Wednesday February 23, 2011 @05:51PM (#2256168)
Agreed I have had lots of performance problems with the canvas tag trying to simple things that ran blazingly fast in flash. HTML 5 (buzz) has a long way to go before it can really compete with flash. Similar demo running in flash. http://www.flash-filter.net/rain-drop-water-effect.phtml
Re:Ripple effect in HTML5 canvas by wlievens on Thursday February 24, 2011 @07:20AM (#2257640)
Same here. I built an isometric strategy game in canvas but had to abandon it because I couldn't get over 12 fps on firefox on a reasonably resolution.
Re:Ripple effect in HTML5 canvas by pedrokost on Wednesday February 23, 2011 @05:02PM (#2256016)
Many people complained about flash poor performance and acclaimed HTML5 as a technology that will make the web better. Well, in some ways it has, but unfortunately it will replace Flash for such effects and possibly make it worse. Everyone can write javascript as it's free. Writing Flash effects like that required and additional step: getting the software, which is expensive. This will allow for many more 'funky effects' that will may make the web an awful experience.

Note: The author created this as an experiment, which I strongly encourage. However the sentence "You could use it for nice cheesy banner effects or just to impress your site visitors" announces a misuse of the experiment.

EDIT: Any explanation why this comment was downvoted?

Re:Ripple effect in HTML5 canvas by abstractbill on Wednesday February 23, 2011 @06:30PM (#2256277)
Writing Flash effects like that required and additional step: getting the software, which is expensive.

This is actually not true - it's quite easy to set up a development using free tools (actually free in both senses of the word). Take a look at haXe for example.

Re:Ripple effect in HTML5 canvas by pedrokost on Thursday February 24, 2011 @03:13AM (#2257319)
Indeed you're right. There is also Flex SDK, however most beginners don't know that, and think they need Flash Pro or Flash Builder to get started.
Re:Ripple effect in HTML5 canvas by mcav on Wednesday February 23, 2011 @06:19PM (#2256241)
I just assume that any comment is prone to random downvotes on HN these days. I liken it to cosmic rays: something that just happens.
Re:Ripple effect in HTML5 canvas by bane on Wednesday February 23, 2011 @08:52PM (#2256641)
I can't wait till all the flash adverts on every web page are replaced with even slower HTML5 adverts.