Difference between revisions of "RenderTarget:getPixel"

From GiderosMobile
(remove language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[RenderTarget]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns single pixels color and alpha channel</translate>
+
Returns single pixels color and alpha channel.
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = RenderTarget:getPixel(x,y)
 
(number), (number) = RenderTarget:getPixel(x,y)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''x''': (number) <translate>x coordinate of pixel</translate> <br/>
+
=== Parameters ===
'''y''': (number) <translate>y coordinate of pixel</translate> <br/>
+
'''x''': (number) x coordinate of pixel<br/>
=== <translate>Return values</translate> ===
+
'''y''': (number) y coordinate of pixel<br/>
'''<translate>Returns</translate>''' (number) <translate>color in hex</translate><br/>
+
 
'''<translate>Returns</translate>''' (number) <translate>alpha value from 0 to 1</translate><br/>
+
=== Return values ===
 +
'''Returns''' (number) color in hex<br/>
 +
'''Returns''' (number) alpha value from 0 to 1<br/>
  
 
{{RenderTarget}}
 
{{RenderTarget}}

Revision as of 02:15, 24 December 2020

Available since: Gideros 2016.06
Class: RenderTarget

Description

Returns single pixels color and alpha channel.

(number), (number) = RenderTarget:getPixel(x,y)

Parameters

x: (number) x coordinate of pixel
y: (number) y coordinate of pixel

Return values

Returns (number) color in hex
Returns (number) alpha value from 0 to 1