Skip to main content
Participant
May 2, 2022 9:10 PM UTC
Question

Changing the color of an sprite object dynamically

In flash, using Actionscript, it was easy to change the color of object. 

 

Does Animate/Javascript or CreateJS allow the same?

 

For example... if I want a user to be able to select an object onscreen and change the color of the object by clicking a button with a color value, is that possible?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    May 2, 2022 9:35 PM UTC

    Hi.

     

    You can apply a color filter [1, 2] or change shape properties of instances that are not exported as bitmaps [1, 2].

     

    Please let us know if you have any further questions.

     

    Regards,

    JC

    Translate