Difference between revisions of "Pixel:getColor"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2016.06<br/> | |
− | ''' | + | '''Class:''' [[Pixel]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Gets the color and alpha of the Pixel or a 4 color-alpha pairs if it has a gradient. | |
<source lang="lua"> | <source lang="lua"> | ||
(number), (number) = Pixel:getColor() | (number), (number) = Pixel:getColor() | ||
</source> | </source> | ||
− | === | + | |
− | ''' | + | === Return values === |
− | ''' | + | '''Returns''' (number) color in hex format<br/> |
+ | '''Returns''' (number) alpha between 0 and 1<br/> | ||
{{Pixel}} | {{Pixel}} |
Revision as of 17:24, 16 March 2021
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