6 ms·
Try setting it to spawn a new tree every 1 or 2 frames; you get some amazing patterns around the outside. Performance is good on Safari, even after a few minut
by mhotchen 17y ago
Try setting it to spawn a new tree every 1 or 2 frames; you get some amazing patterns around the outside.
Performance is good on Safari, even after a few minutes and fade turned off.
- robin_reala 17y agoCanvas is a bitmap drawing field. The browser actually has to do less work with fade turned off, and performance won’t degrade with time running.
- mhotchen 17y agoThanks, I had no idea; I've only ever done animation in flash and—without thinking about it—made the assumption that canvas would also be vector based. Knowing this is going to be really useful at some point, so again, thanks.
- robin_reala 17y agoYou can of course work with vectors on the web as well by using SVG. Well, if you ignore IE, but then you’d be ignoring it by using canvas :) They’re both good at their own field. SVG gives you the doctree and accessibility, canvas raw speed and bitmap tricks.