BitmapData.getTransform()

<static> getTransform(translateX, translateY, scaleX, scaleY, skewX, skewY) → {object}

Gets a JavaScript object that has 6 properties set that are used by BitmapData in a transform.

Parameters
Name Type Description
translateX number

The x translate value.

translateY number

The y translate value.

scaleX number

The scale x value.

scaleY number

The scale y value.

skewX number

The skew x value.

skewY number

The skew y value.

Returns
object -

A JavaScript object containing all of the properties BitmapData needs for transforms.

Source code: gameobjects/BitmapData.js (Line 2419)
doc_phaser
2017-02-14 10:37:20
Comments
Leave a Comment

Please login to continue.