Elm-playground vs others and animating SVG color

New to elm. How can I update the color of a circle when the mouse is clicked using elm-playground?

It’s confusing because the documentation shows the only things I can ‘update’ about shapes are the scale, rotation, and fade. But shapes also have a color property. Is there some other intended way to change this in response to user input?

I’ve seen other more mature packages like GraphicsSVG or elm-animation, but they seem to be doing the same thing elm-playground does. It’s confusing trying to select one to use. I just want to build a game with simple SVG shapes that change their properties like scale, rotation, position, opacity, and color over time and in response to user input.

Here is what I have so far, I’ve tried to make the circle change color on computer.mouse.down but nothing has worked:
https://ellie-app.com/cnVcHsD3qG3a1

Hi!

Here’s an example of how you could make the circle change color while the mouse button is down: https://ellie-app.com/cnW4dT8tqGVa1

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.