Difference between revisions of "Sprite:getClip"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' in development<br/>
+
'''Available since:''' Gideros 2016.10<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
'''Class:''' [[Sprite]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Returns the coordinates of the Sprite clip range if set with setClip</translate>
+
=== Description ===
<source lang="lua">
+
Returns the coordinates of the Sprite clip range if set with '''setClip'''.
 +
<syntaxhighlight lang="lua">
 
(number), (number), (number), (number) = Sprite:getClip()
 
(number), (number), (number), (number) = Sprite:getClip()
</source>
+
</syntaxhighlight>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>x-coordinate of clip origin</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>y-coordinate of clip origin</translate><br/>
+
'''Returns''' (number) x-coordinate of clip origin<br/>
'''<translate>Returns</translate>''' (number) <translate>width of clip region</translate><br/>
+
'''Returns''' (number) y-coordinate of clip origin<br/>
'''<translate>Returns</translate>''' (number) <translate>Height of clip region</translate><br/>
+
'''Returns''' (number) width of clip region<br/>
 +
'''Returns''' (number) height of clip region<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2016.10
Class: Sprite

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