]> git.imager.perl.org - imager.git/commitdiff
fix synopsis to load the required modules
authorTony Cook <tony@develop=help.com>
Mon, 31 Aug 2009 12:03:58 +0000 (12:03 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 31 Aug 2009 12:03:58 +0000 (12:03 +0000)
lib/Imager/Color.pm
lib/Imager/Fill.pm

index 22c60842ec0bb73fea431204bfda7d9fc19a6bbc..0d2d19fafec0055b93e11471e040a64e23a2bc13 100644 (file)
@@ -373,6 +373,8 @@ Imager::Color - Color handling for Imager.
 
 =head1 SYNOPSIS
 
+  use Imager;
+
   $color = Imager::Color->new($red, $green, $blue);
   $color = Imager::Color->new($red, $green, $blue, $alpha);
   $color = Imager::Color->new("#C0C0FF"); # html color specification
index a540cd7c49d3cea796351ebcc468553983f23243..b4e4fe31f405fa97b7eeaf1af33246aa72a6b1eb 100644 (file)
@@ -150,6 +150,9 @@ sub combines {
 
 =head1 SYNOPSIS
 
+  use Imager;
+  use Imager::Fill;
+
   my $fill1 = Imager::Fill->new(solid=>$color, combine=>$combine);
   my $fill2 = Imager::Fill->new(hatch=>'vline2', fg=>$color1, bg=>$color2,
                                 dx=>$dx, dy=>$dy);