TextureRegion:setRegion: Difference between revisions
From GiderosMobile
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2012.08.2<br/> | |||
''' | '''Class:''' [[TextureRegion]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets the coordinates of the region. | |||
Sets the coordinates of the region. | |||
<source lang="lua"> | <source lang="lua"> | ||
TextureRegion:setRegion(x,y,width,height) | |||
</source> | </source> | ||
=== | |||
'''x''': (number) | === Parameters === | ||
'''y''': (number) | '''x''': (number) left coordinate of the region<br/> | ||
'''width''': (number) | '''y''': (number) top coordinate of the region<br/> | ||
'''height''': (number) | '''width''': (number) width of the region<br/> | ||
'''height''': (number) height of the region<br/> | |||
{{TextureRegion}} | {{TextureRegion}} | ||
Revision as of 20:11, 10 June 2023
Available since: Gideros 2012.08.2
Class: TextureRegion
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