Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: bITs.EA on January 18, 2017, 03:22:58 am
-
Hi
Is it possible to add a gradient property to a "fill-command"? Nativeshapes have gradient in their color, but custom shapes don't...
Thanks
Grts
S
-
For my tests, shapes drawn by a top level shape are drawn with gradients, but subshapes they are disabled.
-
I noticed that something like this
shape main
{
ellipse(0,0,100,100);
}
doesn't have a gradient fill, but if you put it inside a path
shape main
{
startpath();
ellipse(0,0,100,100);
endpath();
fillandstrokepath();
}
it does have a gradient fill.
-
I noticed that something like this
shape main
{
ellipse(0,0,100,100);
}
doesn't have a gradient fill, but if you put it inside a path
shape main
{
startpath();
ellipse(0,0,100,100);
endpath();
fillandstrokepath();
}
it does have a gradient fill.
Pure EAUI!
(at least it's not boring... You never know what gotcha is round the next corner...)
Paolo
-
As we all know, the Easter bunny has its home on planet Sparx.
q.
-
Check! The startpath()/endpath() solution works like a charm.