Difference between revisions of "Sprite:setColorTransform"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Sets the red, green, blue and alpha channel multipliers (values between 0 and 1). This function lets you adjust the color multipliers of a display object.<br /> | Sets the red, green, blue and alpha channel multipliers (values between 0 and 1). This function lets you adjust the color multipliers of a display object.<br /> | ||
Line 9: | Line 9: | ||
Sprite:setColorTransform(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) | Sprite:setColorTransform(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''redMultiplier''': (number, default = 1) <translate>The red multiplier of this sprite (values between 0 and 1)</translate> <br/> | '''redMultiplier''': (number, default = 1) <translate>The red multiplier of this sprite (values between 0 and 1)</translate> <br/> | ||
'''greenMultiplier''': (number, default = 1) <translate>The green multiplier of this sprite(values between 0 and 1)</translate> <br/> | '''greenMultiplier''': (number, default = 1) <translate>The green multiplier of this sprite(values between 0 and 1)</translate> <br/> | ||
'''blueMultiplier''': (number, default = 1) <translate>The blue multiplier of this sprite(values between 0 and 1)</translate> <br/> | '''blueMultiplier''': (number, default = 1) <translate>The blue multiplier of this sprite(values between 0 and 1)</translate> <br/> | ||
'''alphaMultiplier''': (number, default = 1) <translate>The alpha multiplier of this sprite(values between 0 and 1)</translate> <br/> | '''alphaMultiplier''': (number, default = 1) <translate>The alpha multiplier of this sprite(values between 0 and 1)</translate> <br/> |
Revision as of 07:28, 24 August 2018
Available since: Gideros 2011.6
Description
Sets the red, green, blue and alpha channel multipliers (values between 0 and 1). This function lets you adjust the color multipliers of a display object.
This adjustment also applies to the children of this sprite instance.
Sprite:setColorTransform(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier)
Parameters
redMultiplier: (number, default = 1) The red multiplier of this sprite (values between 0 and 1)
greenMultiplier: (number, default = 1) The green multiplier of this sprite(values between 0 and 1)
blueMultiplier: (number, default = 1) The blue multiplier of this sprite(values between 0 and 1)
alphaMultiplier: (number, default = 1) The alpha multiplier of this sprite(values between 0 and 1)