作者cjcat2266 (CJ Cat)
看板Flash
标题Re: [问题] 请问镜像的Matrix...
时间Wed Jan 9 16:54:20 2008
※ 引述《dreamboxer (陌生人)》之铭言:
: 想请问一下我想把一张图作垂直翻转的镜像...
: 它的变形Matrix要怎麽写?@@
: 用 matrix.rotate(Math.PI) 是转了180度但不是镜像...= =
就直接套用以前高中学过的镜射矩阵吧
| 1 0 |
| 0 -1 |
也就是大致code会长这样
var mirrorY:Matrix = new Matrix(1, 0, 0, -1);
myClip_mc.transform.matrix = mirrorY;
--
CJ Cat = Croa'J Cat = Cockroach Cat = 西街凯特 = 蜚蠊猫 = 蟑螂猫
Gallery
http://cjcat2266.deviantart.com
ptt2 Board CJWorkshop - 阿多比闪光(Adobe Flash)研讨区
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.228.89.236