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: