Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Stranger image when drawing with Shape and Matrix — Gideros Forum

Stranger image when drawing with Shape and Matrix

hnimhnim Member
edited September 2012 in Bugs and issues
I dont know where Im wrong?
I use this code to scale my image:
local tx = Texture.new("mario5.png", true)
local matrix = Matrix.new(0.5, 0, 0, 0.5, 0, 0)
local shape = Shape.new()
shape:setFillStyle(Shape.TEXTURE, tx, matrix)
shape:beginPath()
shape:moveTo(0,0)
shape:lineTo(119,0)
shape:lineTo(119,119)
shape:lineTo(0,119)
shape:closePath()
shape:endPath()
--
stage:addChild(shape)
and here is result
matrix.png
371 x 248 - 22K

Comments

Sign In or Register to comment.