문제

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 to 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top