Difference between revisions of "Sprite:getClip"

From GiderosMobile
(remove language stuff)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the coordinates of the Sprite clip range if set with '''setClip'''.
 
Returns the coordinates of the Sprite clip range if set with '''setClip'''.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number), (number) = Sprite:getClip()
 
(number), (number), (number), (number) = Sprite:getClip()
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2016.10
Class: Sprite

Description

Returns the coordinates of the Sprite clip range if set with setClip. <syntaxhighlight lang="lua"> (number), (number), (number), (number) = Sprite:getClip() </source>

Return values

Returns (number) x-coordinate of clip origin
Returns (number) y-coordinate of clip origin
Returns (number) width of clip region
Returns (number) height of clip region