Difference between revisions of "Sprite:getClip"

From GiderosMobile
Line 13: Line 13:
 
'''<translate>Returns</translate>''' (number) <translate>width of clip region</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>width of clip region</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>Height of clip region</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>Height of clip region</translate><br/>
 +
 +
{{Sprite}}

Revision as of 00:07, 4 December 2019


Available since: in development
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