Difference between revisions of "Sprite:setSkew"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the skew (ie shear) of the '''Sprite'''.
 
Sets the skew (ie shear) of the '''Sprite'''.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Sprite:setSkew(kx,ky)
 
Sprite:setSkew(kx,ky)
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2016.10
Class: Sprite

Description

Sets the skew (ie shear) of the Sprite. <syntaxhighlight lang="lua"> Sprite:setSkew(kx,ky) </source>

Parameters

kx: (number) the x-skew of the sprite
ky: (number) the y-skew of the sprite