我可以在JavaScript中创建雨效果吗? [英] Can I create rain effect in javascript?

查看:158
本文介绍了我可以在JavaScript中创建雨效果吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我的网站实现这样的目标: Flash Rain效果



JavaScript中可以这样做吗?我希望它和Flash一样平滑。

另一个闪光雨滴水效应

解决方案

是的,这是可能的: http://www.lab4games.net/zz85/blog/2010/03/ 10 / rain-water-ripples-with-html-canvas-javascript-jquery /

平滑度是相对的,你可能无法拥有与硬件加速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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆