aboutsummaryrefslogtreecommitdiff
path: root/doc/exemple_rotation.pl
diff options
context:
space:
mode:
authorribet2007-06-13 18:53:03 +0000
committerribet2007-06-13 18:53:03 +0000
commit80211308e4a34e5c29349725b2a4b14656d72f75 (patch)
tree081dadfe16563c08e8967357d7ccefbe3e9ac4c2 /doc/exemple_rotation.pl
parentc0dbd65a0c3e0b66d69b8fcc827f8380a7b35767 (diff)
downloadmtc-80211308e4a34e5c29349725b2a4b14656d72f75.zip
mtc-80211308e4a34e5c29349725b2a4b14656d72f75.tar.gz
mtc-80211308e4a34e5c29349725b2a4b14656d72f75.tar.bz2
mtc-80211308e4a34e5c29349725b2a4b14656d72f75.tar.xz
Adding 'use strict;'
Diffstat (limited to 'doc/exemple_rotation.pl')
-rwxr-xr-xdoc/exemple_rotation.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/exemple_rotation.pl b/doc/exemple_rotation.pl
index 6090221..0859209 100755
--- a/doc/exemple_rotation.pl
+++ b/doc/exemple_rotation.pl
@@ -19,6 +19,8 @@ BEGIN {
unshift @INC, ".", "../src";
}
+use strict;
+
use Tk;
use Math::Trig;
@@ -28,9 +30,9 @@ use MTools::Transform::MRotation;
new MTools (800, 600, "Exemple de rotation");
-my $background = new MTools::GUI::MRect (1, 0, 0, 800, 600, -filled => 1, -fillcolor => lightblue);
+my $background = new MTools::GUI::MRect (1, 0, 0, 800, 600, -filled => 1, -fillcolor => "lightblue");
-my $barre = new MTools::GUI::MRect (1, 400, 300, 200, 20, -fillcolor => pink);
+my $barre = new MTools::GUI::MRect (1, 400, 300, 200, 20, -fillcolor => "pink");
$barre->rotate(-(pi/2), 400, 300);
my $rotation = new MTools::Transform::MRotation($barre, 0, 400, 300);