Re: [問題] 請問鏡像的Matrix...
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Flash 近期熱門文章
PTT數位生活區 即時熱門文章