Hi All,
What is the best way to draw a shape (circle, rectangle, etc.) without a
background using the SVG component? I tried using a “transparent” color:
$tRef:=SVG_New_circle ($tSVG;200;200;100;"red";"white:0";10)
//“white:0” = transparent
But it seems that if you pass a color like “white:0” where the transparency
part after the colon is 0, it is ignored and the fill-opacity attribute is not
set.
I can call SVG_SET_OPACITY after creating the shape and it will set it
properly, but I wasn’t expecting to have to call another command to remove the
background of an object. Is this the normal way of doing it? Is there a special
color I can use that denotes transparent? Is “white:0” not working considered a
bug?
Or is trying to set the transparency the wrong way to do it? I guess at the end
of the day what I’m really after is for the XML to end up with this attribute:
fill=“none”
What is the best way of doing this?
Thanks.
--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[email protected]>
<www.synergyfarmsolutions.com>
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************