Phaser API Documentation

  Version: 
setSkew([x], [y])

Description:

Sets the horizontal and vertical skew values of this DOM Element.

For more information see: https://developer.mozilla.org/en-US/docs/Web/CSS/transform

Parameters:

name type arguments Default description
x number <optional> 0

The angle, in radians, by which to skew the DOM Element on the horizontal axis.

y number <optional> x

The angle, in radians, by which to skew the DOM Element on the vertical axis.

Returns:
Description:

This DOM Element instance.

Since: 3.17.0