Difference between revisions of "Pixel:getColor"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Gets the color of the Pixel or 4 color-alpha pairs if it has a gradient. <source lang="lua"> (number)...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2016.06<br/> | '''Available since:''' Gideros 2016.06<br/> | ||
+ | '''Class:''' [[Pixel]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | Gets the color of the Pixel or 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. |
− | < | + | <syntaxhighlight lang="lua"> |
− | (number) (number) | + | (number), (number) = Pixel:getColor() |
− | </ | + | </syntaxhighlight> |
− | '''Returns''' (number) | + | |
− | '''Returns''' (number) alpha<br/> | + | === Return values === |
+ | '''Returns''' (number) color in hex format<br/> | ||
+ | '''Returns''' (number) alpha between 0 and 1<br/> | ||
+ | |||
+ | {{Pixel}} |
Latest revision as of 14: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