Difference between revisions of "RenderTarget:getPixel"

From GiderosMobile
Line 14: Line 14:
 
'''<translate>Returns</translate>''' (number) <translate>color in hex</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>color in hex</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>alpha value from 0 to 1</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>alpha value from 0 to 1</translate><br/>
 +
 +
{{RenderTarget}}

Revision as of 22:37, 3 December 2019


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