Transform:setTransformation

Available since LÖVE 0.11.0
This function is not supported in earlier versions.

Resets the Transform to the specified transformation parameters.

Function

Synopsis

transform = Transform:setTransformation( x, y, angle, sx, sy, ox, oy, kx, ky )

Arguments

number x
The position of the Transform on the x-axis.
number y
The position of the Transform on the y-axis.
number angle (0)
The orientation of the Transform in radians.
number sx (1)
Scale factor on the x-axis.
number sy (sx)
Scale factor on the y-axis.
number ox (0)
Origin offset on the x-axis.
number oy (0)
Origin offset on the y-axis.
number kx (0)
Shearing / skew factor on the x-axis.
number ky (0)
Shearing / skew factor on the y-axis.

Returns

Transform transform
The Transform object the method was called on. Allows easily chaining Transform methods.

See Also

Other Languages