Pixel:getColor: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
=== Description ===
=== Description ===
Gets the color and alpha of the Pixel or a 4 color-alpha pairs if it has a gradient.
Gets the color and alpha of the Pixel or a 4 color-alpha pairs if it has a gradient.
<source lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = Pixel:getColor()
(number), (number) = Pixel:getColor()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===

Latest revision as of 13:32, 13 July 2023

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.

(number), (number) = Pixel:getColor()

Return values

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