NAME
Grahics::Primitive::Path
DESCRIPTION
Graphics::Primitive::Path is a shape defined by a list of primitives. =head1 SYNOPSIS
use Graphics::Primitive::Path;
my $path = Graphics::Primitive::Path->new();
$path->add_primitive($line);
$path->move_to($point);
METHODS
Constructor
- new
-
Creates a new Graphics::Primitive::Path
Instance Methods
- add_primitive
-
Add a primitive to this Path.
- clear_current_point
-
Clears the current point on this Path.
- clear_primitives
-
Clears all primitives from this Path. NOTE: This does not clear the current point.
- count_primitives
-
Returns the number of primitives on this Path.
- current_point
-
Returns the current, or last, point on this Path.
- get_points
-
Get this path as a series of points.
- get_primitive_at
-
Returns the primitive at the specified offset.
- line_to
-
Draw a line from the current point to the one provided.
- move_to
-
Move the current point to the one specified. This will not add any primitives to the path.
AUTHOR
Cory Watson <gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
COPYRIGHT & LICENSE
Copyright 2008 by Infinity Interactive, Inc.
You can redistribute and/or modify this code under the same terms as Perl itself.