I could not find anywhere an example of using canvas for a billboard image. Should I just paste a string of canvas? Can I use SVG?
For instance, let’s assume I want to use this svg:
But to change its color depending on some variable (so some billboards will be green and some will be red).
I’ve tried the following:
Set the billboard color and set the SVG as a URL - this shows the image only on local app, but without the color (it just takes the default color). In the sandcastle, it doesn’t work even with “loadImage”…
Copy and paste the actual SVG code - doesn’t work.
I’ve also tried to copy-paste a simple canvas - still no good.
So my question would be better phrased this way - how would I change SVG images dynamically (e.g. a certain part’s color) when used in a billboard?