Re: [問題] 請問鏡像的Matrix...

看板Flash作者 (CJ Cat)時間18年前 (2008/01/09 16:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #17X8k-Go (Flash)
討論串 (同標題文章)
文章代碼(AID): #17X8k-Go (Flash)