Pixel:getColor

From GiderosMobile
Revision as of 15:30, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2016.06
Class: Pixel

Description

Gets the color and alpha of the Pixel or a 4 color-alpha pairs if it has a gradient. <syntaxhighlight lang="lua"> (number), (number) = Pixel:getColor() </source>

Return values

Returns (number) color in hex format
Returns (number) alpha between 0 and 1