我可以在JavaScript中创建雨效果吗? [英] Can I create rain effect in javascript?
问题描述
我需要为我的网站实现这样的目标: Flash Rain效果
JavaScript中可以这样做吗?我希望它和Flash一样平滑。
平滑度是相对的,你可能无法拥有与硬件加速Flash相同的性能。这就是说,越来越多的浏览器开始加入原生硬件加速(Direct2D和其他)。
I need to achieve something like this for my website: Flash Rain Effect
Is that possible to do in Javascript? I want it to be just as smooth as it is in Flash.
Another flash rain drop water effect
Yes, it's possible: http://www.lab4games.net/zz85/blog/2010/03/10/rain-water-ripples-with-html-canvas-javascript-jquery/
Smoothness is something relative, and you may not be able to have the same performance as hardware-accelerated Flash. With that said, more and more browsers are starting to incorporate native hardware acceleration (Direct2D and otherwise).
这篇关于我可以在JavaScript中创建雨效果吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!