Difference between revisions of "Sprite:getClip"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' in development<br/> | + | '''<translate>Available since</translate>:''' in development<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Returns the coordinates of the Sprite clip range if set with setClip</translate> | <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 === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>x-coordinate of clip origin</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>x-coordinate of clip origin</translate><br/> |
− | '''Returns''' (number) <translate>y-coordinate of clip origin</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>y-coordinate of clip origin</translate><br/> |
− | '''Returns''' (number) <translate>width of clip region</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>width of clip region</translate><br/> |
− | '''Returns''' (number) <translate>Height of clip region</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>Height of clip region</translate><br/> |
Revision as of 07:29, 24 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