TextureRegion:setRegion: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2012.08.2<br/>
'''Available since:''' Gideros 2012.08.2<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextureRegion|TextureRegion]]<br/>
'''Class:''' [[TextureRegion]]<br/>
=== <translate>Description</translate> ===
 
<translate><br />
=== Description ===
Sets the coordinates of the region.<br />
Sets the coordinates of the region.
<br /></translate>
<syntaxhighlight lang="lua">
<source lang="lua">
TextureRegion:setRegion(x,y,width,height)
TextureRegion:setRegion(x,y,width,height)
</syntaxhighlight>
</source>
 
=== <translate>Parameters</translate> ===
=== Parameters ===
'''x''': (number) <translate>left coordinate of the region</translate> <br/>
'''x''': (number) left coordinate of the region<br/>
'''y''': (number) <translate>top coordinate of the region</translate> <br/>
'''y''': (number) top coordinate of the region<br/>
'''width''': (number) <translate>width of the region</translate> <br/>
'''width''': (number) width of the region<br/>
'''height''': (number) <translate>height of the region</translate> <br/>
'''height''': (number) height of the region<br/>
 
{{TextureRegion}}

Latest revision as of 13: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