Difference between revisions of "Sprite:getClip"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' in development<br/>
 
'''Available since:''' in development<br/>
 
=== Description ===
 
=== Description ===
Returns the coordinates of the Sprite clip range if set with setClip
+
<translate>Returns the coordinates of the Sprite clip range if set with setClip</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number), (number), (number) = Sprite:getClip()
 
(number), (number), (number), (number) = Sprite:getClip()
 
</source>
 
</source>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) x-coordinate of clip origin<br/>
+
'''Returns''' (number) <translate>x-coordinate of clip origin</translate><br/>
'''Returns''' (number) y-coordinate of clip origin<br/>
+
'''Returns''' (number) <translate>y-coordinate of clip origin</translate><br/>
'''Returns''' (number) width of clip region<br/>
+
'''Returns''' (number) <translate>width of clip region</translate><br/>
'''Returns''' (number) Height of clip region<br/>
+
'''Returns''' (number) <translate>Height of clip region</translate><br/>

Revision as of 13:35, 23 August 2018

Available since: in development

Description

Returns the coordinates of the Sprite clip range if set with setClip

(number), (number), (number), (number) = Sprite:getClip()

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