Jump to content
Search Community

colorTransform issues.

swiftmend test
Moderator Tag

Recommended Posts

Hi,

 

I'm unable to get colorTransform working properly:

 

This is what I've got:

 

var ColourPallet:Array = [1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1]

 

TweenPlugin.activate([ColorTransformPlugin]);

TweenPlugin.activate([ColorMatrixFilterPlugin]);

 

TweenMax.to(ColoursBlock, 0.5, {colorTransform:{redMultiplier:ColourPallet[0], redOffset:ColourPallet[1], greenMultiplier:ColourPallet[2], greenOffset:ColourPallet[3], blueMultiplier:ColourPallet[4], blueOffset: ColourPallet[5], exposure:ColourPallet[10]}});

 

TweenMax.to(ColoursBlock, 0.5, {colorMatrixFilter:{contrast:ColourPallet[6], brightness:ColourPallet[7], saturation:ColourPallet[8], hue:ColourPallet[9]}})

 

 

Now for whatever reason, the colorMatrixFilter all works fine, as does "exposure" in the colorTransform. However none of the Multipliers work or the offsets, the colours don't change at all.

 

Any clue why this would be?

Link to comment
Share on other sites

Now for whatever reason, the colorMatrixFilter all works fine, as does "exposure" in the colorTransform. However none of the Multipliers work or the offsets, the colours don't change at all.

You cannot do "exposure" AND control all the various offsets/multipliers because exposure affects them. You need to do one or the other.

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...