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. enter image description here 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -