Jump to content
Search Community

Apply color transform to bitmap

pattofield test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello...
Been dev'ing in Flash for years and using the greensock library extensively, however I want to port some projects over to html5 using EaselJS/CreateJS and, as this is new territory for me, I'm running into some hurdles with color transformations.

One aspect I need to port is a color transform of an animation. So my animation is now exported as a spritesheet and I'm trying to find a way to perform a color change of the animation as it plays. (think of a bottle of water where the water changes color as it fills in the bottle)

The lack of info I've been able to find would imply that it's not as easy as it sounds (and certainly not as easy as in Flash with TweenMax).

Any ideas on how to approach this....?

Link to comment
Share on other sites

Hello pattofield, and Welcome to the GreenSock Forum!

 

Have a look at the following Forum Topics:

 

http://greensock.com/forums/topic/12889-change-fill-color-with-colorprops-plug-in-flash-procreate-js/

http://greensock.com/forums/topic/13145-colorprops-tinting-canvas/

 

If your still having issues than please provide a codepen demo example:

 

 

:)

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...