Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | #$Id: Pastel.pm,v 1.12 2003/05/08 18:00:44 malay Exp $ |
2 | # Perl module for Pastel | |
3 | # Author: Malay < curiouser@ccmb.res.in > | |
4 | # Copyright (c) 2003 by Malay. All rights reserved. | |
5 | # You may distribute this module under the same terms as Perl itself | |
6 | ||
7 | =head1 NAME | |
8 | ||
9 | Pastel - 2D graphic library and Scalable Vector Graphics (SVG) generator | |
10 | ||
11 | =head1 SYNOPSIS | |
12 | ||
13 | use Pastel; | |
14 | my $g = Pastel::Graphics->new(); # create a graphics context | |
15 | ... | |
16 | # various graphics routines here | |
17 | ... | |
18 | $g->show(); # dump the SVG graphics on STDOUT | |
19 | $g->get_svg(); # get the SVG graphics as string | |
20 | ||
21 | =head1 DESCRIPTION | |
22 | ||
23 | This module is just a wrapper class to call all the other module. The | |
24 | main work-horse of the whole package is C<Pastel::Graphics>. After | |
25 | calling C<use Pastel> a graphics context should be created by creating | |
26 | an instance of C<Pastel::Graphics>. After calling various method | |
27 | calls, the graphics object can be dumped as SVG on STDOUT by calling | |
28 | C<show()> method of the graphics object. Alternatively, the graphics | |
29 | object can be returned as string by calling C<get_svg()> method. | |
30 | ||
31 | =cut | |
32 | ||
33 | ||
34 | package Pastel; | |
35 | ||
36 | $VERSION = 0.04; | |
37 | ||
38 | use strict; | |
39 | ||
40 | use Pastel::Mixin::Mixin; # For _rearrange function | |
41 | use Pastel::Graphics; | |
42 | use Pastel::BasicStroke; | |
43 | #use Pastel::Geometry::Shape; | |
44 | use Pastel::Shape; | |
45 | use Pastel::Geometry::Point; | |
46 | use Pastel::Geometry::Line; | |
47 | use Pastel::Geometry::Rectangle; | |
48 | use Pastel::Geometry::GeneralPath; | |
49 | use Pastel::Color; | |
50 | use Pastel::Tools::Writer; | |
51 | use Pastel::Font; | |
52 | #use Pastel::Text; | |
53 | use Pastel::String; | |
54 | use Pastel::Geometry::Ellipse; | |
55 | use Pastel::GradientStop; | |
56 | use Pastel::GradientI; | |
57 | use Pastel::LinearGradient; | |
58 | use Pastel::Geometry::AffineTransform; | |
59 | use Pastel::Text::AttributedString; | |
60 | use Pastel::Geometry::Circle; | |
61 | ||
62 | ||
63 | =head1 SEE ALSO | |
64 | ||
65 | L<Pastel::Graphics> | |
66 | ||
67 | =head1 COPYRIGHTS | |
68 | ||
69 | Copyright (c) 2003 by Malay <curiouser@ccmb.res.in>. All rights reserved. | |
70 | ||
71 | This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. | |
72 | ||
73 | =cut | |
74 | ||
75 | ||
76 | ||
77 | ||
78 | 1; |