heldrida Posted December 2, 2015 Share Posted December 2, 2015 Hi, I'm working on a project, where I'd like to change some PIXI.Graphics element colour (line, fill). At the moment, I do it by using 'updateLineStyle', on a mouseover event: graphicsElement.updateLineStyle(false, colour, false);The colour change works, but I'd rather see a transition, like we have when using css transitions for example.I wonder if that's possible ? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 2, 2015 Share Posted December 2, 2015 Just tween the color change, calling updateLineStyle many times. If the entire graphics object should change color you can also use `tint` instead, but you still need to tween yourself changing the value many times. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.