So I've read through a lot of questions, but none have worked for me so far.
<svg height="100%" width="100%" class="myclass">
<polygon points="0,0 513,0 0,513" style="fill:red;" />
</svg>
So my svg is the color red. However, I want to change the fill to an image.
The twist is, I want to be able to override this image. For example, onClick change the background image of the SVG.
I've been struggling.
Thanks!