aboutsummaryrefslogtreecommitdiff
path: root/sandbox/local.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/local.pl')
-rw-r--r--sandbox/local.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/sandbox/local.pl b/sandbox/local.pl
index b66f179..d56e708 100644
--- a/sandbox/local.pl
+++ b/sandbox/local.pl
@@ -3,6 +3,7 @@
use Tk;
use Tk::Zinc;
use Controls;
+use Tk::Photo;
require Tk::PNG;
$mw = MainWindow->new();
@@ -12,7 +13,7 @@ $penguin = $mw->Photo(-format => 'png',
-file => "xpenguin.png");
$top = 1;
-$zinc = $mw->Zinc(-render => 0,
+$zinc = $mw->Zinc(-render => 1,
-borderwidth => 0,
-relief => 'sunken',
-tile => $papier);
@@ -28,7 +29,8 @@ $clip = $zinc->add('rectangle', $gr1, [50, 50, 399, 399],
$gr2 = $zinc->add('group', $gr1);
$clip2 = $zinc->add('rectangle', $gr2, [200, 200, 450, 450],
-filled => 1,
- -fillcolor => 'white:100|white:0',
+# -fillcolor => 'white:100|white:0',
+ -fillcolor => 'white:100 0|black:0 100',
# -fillcolor => 'white 0 |blue 20|blue 80|black:0 100/270',
-linewidth => 0);
#$zinc->itemconfigure($gr2, -clip => $clip2);