Difference between revisions of "RenderTarget:getPixel"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2016.06<br/> | '''Available since:''' Gideros 2016.06<br/> | ||
=== Description === | === Description === | ||
− | Returns single pixels color and alpha channel | + | <translate>Returns single pixels color and alpha channel</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number), (number) = RenderTarget:getPixel(x,y) | (number), (number) = RenderTarget:getPixel(x,y) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''x''': (number) x coordinate of pixel <br/> | + | '''x''': (number) <translate>x coordinate of pixel</translate> <br/> |
− | '''y''': (number) y coordinate of pixel <br/> | + | '''y''': (number) <translate>y coordinate of pixel</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) color in hex<br/> | + | '''Returns''' (number) <translate>color in hex</translate><br/> |
− | '''Returns''' (number) alpha value from 0 to 1<br/> | + | '''Returns''' (number) <translate>alpha value from 0 to 1</translate><br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2016.06
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