Hi Takeshi-san,
Since, as Geert suggests, you are the "gradient fill sensei", do you have a solution for when you need to place a rectangle over the top of other EA generated glyphs as in:
decoration mydecoration //v1.0 13-Jul-2015
{
orientation="NE";
if(hasproperty("rectanglenotation","0"))
setorigin("NE",-40,5);
else
setorigin("NE",-20,5);
setpencolor(getuserfillcolor());
setfillcolor(getuserfillcolor());
rectangle(-10,-10,110,110);
}
shape main
{
layouttype="border";
noshadow=true;
//delete color setting for the tagged value to be simple
setfillcolor(getuserfillcolor());
//main shape
setFontColor(0,0,0);
if(hasproperty("rectanglenotation","0"))
{ //Icon Form
startPath();
setfixedregion(80,0,100,0);
moveto(0,0);
lineto(80,0);
lineto(100,50);
lineto(80,100);
setfixedregion(0,0,20,0);
lineto(0,100);
lineto(20,50);
lineto(0,0);
endPath();
fillandstrokePath();
addsubshape("padding","n");
addsubshape("name","center");
shape name
{
v_align="top";
h_align="center";
printwrapped("#name#");
}
shape padding
{
preferredheight=10;
}
}
else
{
drawnativeshape();
}
}
in this code, the oversize rectangle (in mydecoration) is to hide an underlying icon which we want to suppress.
What we want to happen is that this rectangle takes on the underlying gradient at that point.
TIA,
Paolo