MainComputersProgrammingLanguages › SVG

SVG

Edit Page
Report
Scan day: 03 March 2014 UTC
-198
Virus safety - good
Description: CPAN module (100% Perl) which generates an SVG (Scalable Vector Graphics) image from a nested DOM structure. Includes documentation and examples.
Module Version: 2.33     Latest Release:  SVG - Perl extension for generating Scalable Vector Graphics (SVG) documents #!/usr/bin/perl -w use strict; use SVG; # create an SVG object my $svg= SVG->new(width=>200,height=>200); #or my $svg= SVG->new(width=>200,height=>200); # use explicit element constructor to generate a group element my $y=$svg->group( id => 'group_y', style => { stroke=>'red', fill=>'green' } ); # add a circle to the group $y->circle(cx=>100, cy=>100, r=>50, id=>'circle_in_group_y'); # or, use the generic 'tag' method to generate a group element by name my $z=$svg->tag('g', id => 'group_z', style => { stroke => 'rgb(100,200,50)', fill => 'rgb(10,100,150)' } ); # create and add a circle using the generic 'tag' method $z->tag('circle', cx=>50, cy=>50, r=>100, id=>'circle_in_group_z'); # create an anchor on a rectangle within a group within the group z my $k = $z->anchor( id => 'anchor_k', -href => '
Size: 1301 chars

Contact Information

Email:
Phone&Fax:
Address:
Extended:

WEBSITE Info

Page title:SVG - search.cpan.org
Keywords:
Description:
IP-address:199.15.176.161