Waveform Icons
-
@Morphoice said in Waveform Icons:
in my case the svg was set to white, it wouldnt take color from the paint routine, it still always came out white
Show me your code
-
@d-healey it's all there in the first post, no more to it
-
@Morphoice I don't see anywhere in that code where you're setting a color though
-
@d-healey I didn't because it wasn't changing the color, so i removed it. It was really just the example from the docs
-
@Morphoice Oh interesting, I just realised you're using
g.drawSVG
. I've never used that function I always usedrawPath
orfillPath
, which take the colour. But it seemsdrawSVG
doesn't. -
@d-healey I assume the path information is the same? I remember during conversion that sometimes the tool needs only the path info, sometimes it takes the complete svg... I really can't tell when it works and when it doesn't I was just glad it went well with the icons. non-connected paths or things with multiple paths sometimes break. I had a logo once where all letters worked fine, one just wouldnt
-
@Morphoice said in Waveform Icons:
I assume the path information is the same
Not necessarily. I just tried it with your sine icon and it doesn't work.
-
@d-healey
g.drawSVG
takes the colour inside the SVG and cannot be overwritten (what a pity...) -
@ustk said in Waveform Icons:
(what a pity...)
That's probably a good thing, no? Does it work with multi-colour SVGs?
-
@ustk makes sense. however, I can supply the SVG markup if someone needs to make changes to the color, I'll append it to the post later
-
@Morphoice Can you provide it as an SVG file, then I can test?
-
@d-healey said in Waveform Icons:
That's probably a good thing, no?
yeah you're right, or it would automatically use the last set colour... Now when you want to change the colour of the SVG, you need a second one...
Does it work with multi-colour SVGs?
As far as I remember, no... but I might have missed something...
-
-
@d-healey said in Waveform Icons:
Does it work with multi-colour SVGs?
In fact it works:
HiseSnippet 1856.3ocsWstqhhkEFOUYktNyzSlNoe.L0uN0XEh3ETSkISIHhHhhHhW9SGD1.atsQXCpLoe+lGm4MXFPOm5XMUkp69jLD0v51d+k0ZuWqOkiQFfjDTLQk6UOGAHp7mqt7bH1g0QGFRHLjnxeopjdBFDW6pJlyQ5II.ShJUdEeohJu80DWd92+CFce8PCvypHHzPPCvTX.D+rV4OIB88GoaBTgA23c6OIXfBYQ9nzB77ppMHhzM7zsAyzKc6tpDi0SbHp72p1nCM.zskkoodqVlzzz860uceJcqFs02SQ2ucy1ca1qqE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now it was the alpha I had issues with...
-
@d-healey Ok... Wrong again... It probably was a sunday morning the day I tried...
-
@ustk I can confirm. some examples I worked through in the docs have colors or grayscale colors at least
-
I think
drawSVG
function is very static. You can't change color or thin/thick the icon from HISE without altering the original SVG file. -
@d-healey So that was it, here I have a circular gradient in the centre that is not showing in the converted SVG:
-
@d-healey And now it's a few other things that don't draw as in the original SVG so this is not reliable enough unfortunately... Can it be fixed or is it part of the JUCE thing? I don't know...
Decidedly, the graphic is showing a lot of limitations lately. Maybe we should discuss that in the meeting on Friday