Difference between revisions of "TextureRegion:setRegion"

From GiderosMobile
m
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the coordinates of the region.
 
Sets the coordinates of the region.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
TextureRegion:setRegion(x,y,width,height)
 
TextureRegion:setRegion(x,y,width,height)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

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