Difference between revisions of "TextureRegion:setRegion"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.08.2<br/> === Description === <br /> Sets the coordinates of the region.<br /> <br /> <source lang="lua"> = TextureRegion:setRegi...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2012.08.2<br/> | '''Available since:''' Gideros 2012.08.2<br/> | ||
+ | '''Class:''' [[TextureRegion]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Sets the coordinates of the region. | |
− | Sets the coordinates of the region. | + | <syntaxhighlight lang="lua"> |
− | + | TextureRegion:setRegion(x,y,width,height) | |
− | < | + | </syntaxhighlight> |
− | + | ||
− | </ | + | === Parameters === |
− | '''x | + | '''x''': (number) left coordinate of the region<br/> |
− | '''y | + | '''y''': (number) top coordinate of the region<br/> |
− | '''width | + | '''width''': (number) width of the region<br/> |
− | '''height | + | '''height''': (number) height of the region<br/> |
+ | |||
+ | {{TextureRegion}} |
Latest revision as of 14:33, 13 July 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