How can you draw "blank" decoration covering original one?
I would expect to draw decoration, containing rectangle, without border, filled with default element colour, including color gradient matching with underlying element.
Unfortunately I've not succeed in any of those achievement:
- every shape has border, which cannot be set to either 0 (zero) or transparent
- default gradient background doesn't match underlying background.
If you can do it, please share your code. I would appreciate it.
Speaking of background colour, I've found some undocumented behaviour.
When I create rectangle directly inside the decoration, background is filled with solid color.
decoration decblank2 {
orientation = "NE";
rectangle(-70,560,200,330);
}But if I create rectangle inside a subshape, it is filled with gradient (applied regarding to visual style)
decoration decblank {
orientation = "NE";
addsubshape("red", 100, 100);
shape red
{
rectangle(-70,60,200,330);
}
}See the image:
