Math::Geometry::Construction::Draw::SVG - SVG output
Math::Geometry::Construction::Draw::SVG
Version 0.021
use Math::Geometry::Construction; my $construction = Math::Geometry::Construction->new; my $p1 = $construction->add_point('x' => 100, 'y' => 150); my $p2 = $construction->add_point('x' => 130, 'y' => 110); my $l1 = $construction->add_line(extend => 10, support => [$p1, $p2]); my $tikz = $construction->as_tikz(width => 8, height => 3, view_box => [0, 0, 800, 300], svg_mode => 1); print $construction->as_svg(width => 800, height => 300)->xmlify;
This class implements the Math::Geometry::Construction::Draw interface in order to generate SVG output. It is instantiated by the draw method in Math::Geometry::Construction.
SVG
Math::Geometry::Construction
The output created by this class will be an SVG object. See SYNOPSIS.
SYNOPSIS
Key/value pairs in the style settings of lines, circles etc. are passed unchanged to the respective SVG element.
http://www.w3.org/TR/SVG11/
Lutz Gehlen, <perl at lutzgehlen.de>
<perl at lutzgehlen.de>
Copyright 2011, 2013 Lutz Gehlen.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Math::Geometry::Construction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Geometry::Construction
CPAN shell
perl -MCPAN -e shell install Math::Geometry::Construction
For more information on module installation, please visit the detailed CPAN module installation guide.