Difference between revisions of "Transform:setTransformation"

m
m (0.11.0 -> 11.0)
 
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Resets the Transform to the specified transformation parameters.
 
Resets the Transform to the specified transformation parameters.
  

Latest revision as of 19:30, 7 May 2019

Available since LÖVE 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