Table of Contents

RenderTarget:getPixel

Available since version: Gideros 2016.06

Description:

Returns single pixels color and alpha channel

Syntax:

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

Parameters:

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

Return value:

  • number: color in hex
  • number: alpha value from 0 to 1