Difference between revisions of "Sprite:getColorTransform"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Sprite]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns the red, green, blue and alpha channel multipliers.<br />
+
Returns the red, green, blue and alpha channel multipliers.
<br /></translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
 
 
(number), (number), (number), (number) = Sprite:getColorTransform()
 
(number), (number), (number), (number) = Sprite:getColorTransform()
</source>
+
</syntaxhighlight>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>redMultiplier</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>greenMultiplier</translate><br/>
+
'''Returns''' (number) redMultiplier<br/>
'''<translate>Returns</translate>''' (number) <translate>blueMultiplier</translate><br/>
+
'''Returns''' (number) greenMultiplier<br/>
'''<translate>Returns</translate>''' (number) <translate>alphaMultiplier</translate><br/>
+
'''Returns''' (number) blueMultiplier<br/>
 +
'''Returns''' (number) alphaMultiplier<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns the red, green, blue and alpha channel multipliers.

(number), (number), (number), (number) = Sprite:getColorTransform()

Return values

Returns (number) redMultiplier
Returns (number) greenMultiplier
Returns (number) blueMultiplier
Returns (number) alphaMultiplier