开发者

What is the transformation math for creating a 45 deg angle drop shadow?

开发者 https://www.devze.com 2023-01-04 19:42 出处:网络
I read somewhere in Google\'s reference (and I can no开发者_如何学Pythont find it again) that the shadow for the map marker should be at a 45 degree angle. What is the transformation to apply to the o

I read somewhere in Google's reference (and I can no开发者_如何学Pythont find it again) that the shadow for the map marker should be at a 45 degree angle. What is the transformation to apply to the original image to achieve this? By eyeball it looks like it could be a horizontal shear of about 50% followed by a vertical compression to 50%, but I suspect it could be more complicated.


Not exactly the answer, but this website painlessly eliminated the problem.

http://cycloloco.com/shadowmaker/

0

精彩评论

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