mercredi 16 novembre 2016

ActionScript : A parallelogram with the class Matrix

I have this image I load, this a square and I would like to transform it like this, using the Matrix class. This is a parallelogram, not a rhombus, because the width is 100px and the height is 53px.

I have already done this :

var bmp:Bitmap = new Main.Grass();

addChild(bmp);

bmp.x = (stage.stageWidth - bmp.width) / 2;
bmp.y = (stage.stageHeight - bmp.height) / 2;

Aucun commentaire:

Enregistrer un commentaire