TextureRegion:setRegion: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2012.08.2<br/> | '''<translate>Available since</translate>:''' Gideros 2012.08.2<br/> | ||
=== Description === | === <translate>Description</translate> === | ||
<translate><br /> | <translate><br /> | ||
Sets the coordinates of the region.<br /> | Sets the coordinates of the region.<br /> | ||
| Line 8: | Line 8: | ||
TextureRegion:setRegion(x,y,width,height) | TextureRegion:setRegion(x,y,width,height) | ||
</source> | </source> | ||
=== Parameters === | === <translate>Parameters</translate> === | ||
'''x''': (number) <translate>left coordinate of the region</translate> <br/> | '''x''': (number) <translate>left coordinate of the region</translate> <br/> | ||
'''y''': (number) <translate>top coordinate of the region</translate> <br/> | '''y''': (number) <translate>top coordinate of the region</translate> <br/> | ||
'''width''': (number) <translate>width of the region</translate> <br/> | '''width''': (number) <translate>width of the region</translate> <br/> | ||
'''height''': (number) <translate>height of the region</translate> <br/> | '''height''': (number) <translate>height of the region</translate> <br/> | ||
Revision as of 06:28, 24 August 2018
Available since: Gideros 2012.08.2
Description
Sets the coordinates of the region.
TextureRegion:setRegion(x,y,width,height)
Parameters
x: (number) left coordinate of the region
y: (number) top coordinate of the region
width: (number) width of the region
height: (number) height of the region