openfl

Open full view…

Matrix skew functionality does not work

DanielSedlacek
Fri, 08 Aug 2014 15:37:01 GMT

Try this: function skewer(target:DisplayObject, _x:Float, _y:Float) { var mtx:Matrix = new Matrix(); mtx.b = _y * Math.PI/180; mtx.c = _x * Math.PI/180; mtx.concat(target.transform.matrix); target.transform.matrix = mtx; } The resulted bitmap is not skewed properly. Expected result: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/Matrix.html

DanielSedlacek
Mon, 11 Aug 2014 09:59:02 GMT

Meant for the HTML5 target

@voxel
Thu, 28 Aug 2014 14:35:13 GMT

Can you try setting mtx.a = 1 and comparing?