Difference between revisions of "Pixel:getTexturePosition"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the texture position for the Pixel.
 
Returns the texture position for the Pixel.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = Pixel:getTexturePosition()
 
(number), (number) = Pixel:getTexturePosition()
 
</source>
 
</source>

Revision as of 15:30, 13 July 2023

Available since: in development
Class: Pixel

Description

Returns the texture position for the Pixel. <syntaxhighlight lang="lua"> (number), (number) = Pixel:getTexturePosition() </source>

Return values

Returns (number) the x-coordinate of the texture
Returns (number) the y-coordinate of the texture