Difference between revisions of "RenderTarget:getPixel"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Returns single pixels color and alpha channel <source lang="lua"> (number) (number), = RenderTarget:g...") |
|||
Line 4: | Line 4: | ||
Returns single pixels color and alpha channel | Returns single pixels color and alpha channel | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) (number) | + | (number), (number) = RenderTarget:getPixel(x,y) |
</source> | </source> | ||
− | '''x | + | '''x''': (number) x coordinate of pixel ''''''<br/> |
− | '''y | + | '''y''': (number) y coordinate of pixel ''''''<br/> |
'''Returns''' (number) color in hex<br/> | '''Returns''' (number) color in hex<br/> | ||
'''Returns''' (number) alpha value from 0 to 1<br/> | '''Returns''' (number) alpha value from 0 to 1<br/> |
Revision as of 10:20, 23 August 2018
Available since: Gideros 2016.06
Description
Returns single pixels color and alpha channel
(number), (number) = RenderTarget:getPixel(x,y)
'x: (number) x coordinate of pixel '
'y: (number) y coordinate of pixel '
Returns (number) color in hex
Returns (number) alpha value from 0 to 1