Sprite:setColorTransform

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the red, green, blue and alpha channel multipliers (values between 0 and 1). This function...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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(redMultipliergreenMultiplierblueMultiplieralphaMultiplier,)

'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) '