Transform:scale

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

Scales the Transform's coordinate system. This method does not reset any previously applied transformations.

Function

Synopsis

transform = Transform:scale( sx, sy )

Arguments

number sx
The relative scale factor along the x-axis.
number sy (sx)
The relative scale factor along the y-axis.

Returns

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

See Also

Other Languages