Difference between revisions of "TextureRegion:setRegion"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.08.2<br/>
 
'''Available since:''' Gideros 2012.08.2<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Sets the coordinates of the region.<br />
 
Sets the coordinates of the region.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  TextureRegion:setRegion(x,y,width,height)
 
  TextureRegion:setRegion(x,y,width,height)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''x''': (number) left coordinate of the region <br/>
+
'''x''': (number) <translate>left coordinate of the region</translate> <br/>
'''y''': (number) top coordinate of the region <br/>
+
'''y''': (number) <translate>top coordinate of the region</translate> <br/>
'''width''': (number) width of the region <br/>
+
'''width''': (number) <translate>width of the region</translate> <br/>
'''height''': (number) height of the region <br/>
+
'''height''': (number) <translate>height of the region</translate> <br/>

Revision as of 13:50, 23 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