开发者

Fisheye distortion of MovieClip (AS3)

Some pseudo-code for accomplishing a linear fisheye distortion of a MovieClip's contents would be very appreciated.

The attached illustration shows how the "fisheye effect" is automatically applied t开发者_如何转开发o an area around the mouse-pointer.

The Flare toolkit has examples of both Bifocal and Fisheye distortion here.

distorted movieclip http://www.freeimagehosting.net/uploads/10925464bd.png


The DisplacementMapFilter can be used to do this.

DisplacementMapFilter(bmp,offset,1,2,75,75,"ignore")

Will give pleasing results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜