aboutsummaryrefslogtreecommitdiff
path: root/sandbox/allgradients.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/allgradients.pl')
-rw-r--r--sandbox/allgradients.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/sandbox/allgradients.pl b/sandbox/allgradients.pl
index b4512c0..98b2c9c 100644
--- a/sandbox/allgradients.pl
+++ b/sandbox/allgradients.pl
@@ -11,6 +11,7 @@ my $defaultfont = '-b&h-lucida-bold-r-normal-*-*-140-*-*-p-*-iso10646-1';
my $mw = MainWindow->new();
my $zinc = $mw->Zinc(-width => 700, -height => 300,
-render => 1,
+ -backcolor => "red", # this will be transparent in the doc
)->pack();
@@ -26,7 +27,12 @@ $zinc->gname('white|white 30|black:80[25 15', 'path 2');
$grp = $zinc->add('group', 1);
$zinc->add('rectangle', $grp, [0, 0, 70, 50],
-filled => 1,
- -linewidth => 0,
+ -fillcolor => 'white',
+ );
+$zinc->add('rectangle', $grp, [0, 0, 70, 50],
+ -filled => 1,
+ -linewidth => 1, # to help making the background transparent with gimp!
+
-fillcolor => 'axial 1',
-tags => ['attrs']);
$zinc->add('text', $grp,