aboutsummaryrefslogtreecommitdiff
path: root/sandbox
diff options
context:
space:
mode:
authormertz2002-07-02 08:47:48 +0000
committermertz2002-07-02 08:47:48 +0000
commit3e8acfe88c9a697f9932675cf9b2d0e9cceae6f3 (patch)
treed50a35b2db62f5dbea7b0e0034dba51c06f7a2d4 /sandbox
parent5c253dd02804c6e5c3552b84d3825836b9ac6195 (diff)
downloadtkzinc-3e8acfe88c9a697f9932675cf9b2d0e9cceae6f3.zip
tkzinc-3e8acfe88c9a697f9932675cf9b2d0e9cceae6f3.tar.gz
tkzinc-3e8acfe88c9a697f9932675cf9b2d0e9cceae6f3.tar.bz2
tkzinc-3e8acfe88c9a697f9932675cf9b2d0e9cceae6f3.tar.xz
r�-organisation graphique mineures pour am�liorer
l'image produite (et utilis�e dans la doc)
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/alllineshapes.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/sandbox/alllineshapes.pl b/sandbox/alllineshapes.pl
index 89bc6bb..c2bafc3 100644
--- a/sandbox/alllineshapes.pl
+++ b/sandbox/alllineshapes.pl
@@ -8,7 +8,7 @@ use strict;
my $defaultfont = '-b&h-lucida-bold-r-normal-*-*-140-*-*-p-*-iso10646-1';
my $mw = MainWindow->new();
-my $zinc = $mw->Zinc(-width => 800, -height => 500,
+my $zinc = $mw->Zinc(-width => 700, -height => 420,
# -render => 1,
# -backcolor => "red", # this will be transparent in the doc
)->pack();
@@ -16,15 +16,16 @@ my $zinc = $mw->Zinc(-width => 800, -height => 500,
my $i = 1;
my $x = 20;
-my $y = 100;
-foreach my $lineshape ( qw(straight rightlightning leftlightning rightcorner
- leftcorner doublerightcorner doubleleftcorner) ) {
- print "$lineshape\n";
+my $y = 20;
+foreach my $lineshape ( qw(straight rightlightning leftlightning
+ rightcorner leftcorner doublerightcorner
+ doubleleftcorner) ) {
my $wpt = $zinc->add('waypoint', 1, 1,
-position => [$x, $y],
-labelformat => "a5a5+0+0",
+ -leaderanchors => '% 100x100',
-leadershape => $lineshape,
- -labeldistance => 150,
+ -labeldistance => 120,
);
$zinc->itemconfigure($wpt, 0,
-text => $lineshape,
@@ -37,7 +38,7 @@ foreach my $lineshape ( qw(straight rightlightning leftlightning rightcorner
$i = 1;
}
else {
- $x = $x + 180;
+ $x = $x + 210;
}
}