Hi, I was trying to apply a ColorTransform object to a Shape one. While on the Flash target everything works fine, but on HTML5 nothing happens. Could this be related to this issue?
The color transform worked as expected on html5 target with webgl, however it seems I can’t update it too often… I’m using actuate to tween the color change. It works well on flash target, but when I try to do the same thing on html5, the changing stops at random times. Is this expected?
Perhaps it isn’t flagging the object as dirty, as a test, try setting the object x to a new value (like adding x: sprite.x + 0.000000001 to your tween properties) and see if it makes a difference.
The only way to do a color transform in canvas (I believe) is to make a complete copy of the canvas. This would be very expensive to do every frame, so its currently disabled. When we push blend mode and filter further, perhaps we’ll have the architecture to support color transform in canvas as well
As a workaround you can also bitmapData.draw then colorTransform the BitmapData
I think I may have just fixed the render flag on GIT, so it should set it to render each time the color transform is changed (without having to set the x value as well)
GL should support colorTransform, and should support BitmapData as well, though both (unless you use legacy) have the same display list code, so skew (as mentioned in the other post) should be consistent. Is colorTransform working on Android?
Ran the test again, and color transform does work on android!
The issue came from another bug (byte array’s .readFloat on Android target) that got this not to work, i am now investigating and will update on that bug.
Raising an issue back from the graveyard… From the latest OpenFL updates, is there now a way to apply the color transformations on HTML5/canvas target?
It seems the colortransform is now broken even on webgl. It doesn’t seem to be working for html5 at all (tested on weblg and canvas as well). Using flash target it works as expected.
Oh, I see the problem. Well, let’s wait and see if the cacheAsBitmap really helps with the issue. Fow now, I’m using a colored overlay (Shape) on html5. The result isn’t that good, but helps.