actionscript 3 - How to Change Hue and Saturation of a MovieClip in AS3 -
i have myself movieclip has multiple images in, want able use as3 change hue , saturation client can choose colour , change colour of movieclip settings.
i have tried
var my_color:colortransform = new colortransform(); my_color.color = 0x550000; tempplayer.transform.colortransform = my_color;
but movieclip becomes red, want able add touch of colour, , make colour stand out bit using as3. grey 1 colour
canvas
for saturation gets little more complicated traditional colortransform
. often, need use colormatrixfilter
.
this feature quite complicated, this blog post describes process quite , gives code couple common effects.
that said, can add little color object colortransform
using *offset
, *multiplier
properties greenoffset
, redmultiplier
. lets offset red, green or blue values little give different effects.
Comments
Post a Comment