Jump to content
Search Community

ColorProps tinting Canvas

bm1967 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



I'm learning to use the ColorProps plugin and was wondering if anyone can direct me how (from a mouse event) to colour tint a loaded bitmap that's been drawn into a Canvas object.


I've prepared an example on CodePen where the scale is being tweened but the bitmap image is not  :-(



Many thanks in advance

See the Pen epPoJy?editors=101 by anon (@anon) on CodePen

Link to comment
Share on other sites

Tinting an image is not that straightforward. It might be easier to use a library. I just made this a couple of days ago using Pixi. It not only cycles through some tints, but also uses a hue filter at the beginning.


See the Pen bae3548a3fae7941155290c6ef10273a?editors=001 by osublake (@osublake) on CodePen


If you don't want to use a library, here's a good article explaining how to tint an image. You could use GSAP to do this on the onUpdate callback.



  • Like 5
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...