小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

统计

积分与排名

3d

A

FLASH

FLEX

Friends

GAME

javascript

source

阅读排行榜

评论排行榜

FLEX实例:几款滤镜效果实例.

1:聚光灯效果:

 实例:http://www.rphelan.com/flex/SpotlightDemo/SpotlightDemo.html

  • ambientColor - color to apply to all pixels of the image
  • angle - angle at which the spotlight is projected (in degrees)
  • azimuth - angle between the image plane and the spotlight (in degrees)
  • coneAngle - angle of the spotlight's "opening" (in degrees)
  • distance - distance from the spotlight to the center point
  • intensity - intensity of the spotlight
  • position - x, y, z position of the spotlight
  • spotColor - color of the spotlight

源文件:http://www.rphelan.com/flex/SpotlightDemo/srcview/index.html

2:放大镜效果:

 实例:http://www.rphelan.com/flex/MagnifyDemo/MagnifyDemo.html

  • center ([0-2048, 0-2048]) - the center coordinates of the magnified area
  • outerRadius (0-500) - the radius of the magnified part of the image
  • innerRadius (0-500) - the radius of the fully magnified part of the image
  • magnification (1-50) - the amount to magnify the image by (e.g. set to 2 for a 2x magnification)

源文件:http://www.rphelan.com/flex/MagnifyDemo/srcview/index.html

3:缩放模糊效果:

实例:http://www.rphelan.com/flex/ZoomBlurDemo/ZoomBlurDemo.html

  • amount (0 - 0.5) - the amount of blur to apply
  • center ([0 - 2048, 0 - 2048]) - the focal point of the blur

源文件:http://www.rphelan.com/flex/ZoomBlurDemo/srcview/index.html

4:浮雕效果:

实例:http://www.rphelan.com/flex/SharpenDemo/SharpenDemo.html

  • amount (0 - 20) - the amount to sharpen the image by
  • radius (0 - 1) - pixel distance to sample from

源文件:http://www.rphelan.com/flex/SharpenDemo/srcview/index.html

5:水波效果:

实例:http://www.rphelan.com/flex/WaveReflectionDemo/WaveReflectionDemo.html

  • amplitude (0-1) - the height of the waves
  • frequency (0-.54) - how close together the waves are.  Higher value = more waves.
  • progress (0-1) - percentage of the wave sequence.  Animate from 0 to 1 to get a smooth wave effect.

源文件:http://www.rphelan.com/flex/WaveReflectionDemo/srcview/index.html

 

posted on 2008-11-08 16:16 『小小菜鸟』 阅读(4918) 评论(6) 编辑 收藏

评论

#1楼 2008-11-10 13:39 laan[未注册用户]

呵呵 帅 有的还使用了flashplayer10特性呢  回复 引用   

#2楼 2008-11-10 13:41 laan[未注册用户]

--引用--------------------------------------------------
laan: 呵呵 帅 有的还使用了flashplayer10特性呢
--------------------------------------------------------
汗 竟然都用到了~~~~
 回复 引用   

#3楼 2008-11-15 21:13 csjialong[未注册用户]

怎么每个文件都运行不了啊
好像都差一个libs文件
怎么办 呼呼……
 回复 引用   

#4楼 2008-11-20 23:34 csjialong[未注册用户]

找不到类型,或者它不是编译时常数: Shader  回复 引用   

#5楼[楼主] 2008-11-21 10:56 『小小菜鸟』      

@csjialong
flash player 10
 回复 引用 查看   

#6楼 2008-12-15 17:08 开心网[未注册用户]

学习。  回复 引用