Skip to content

moritz/svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Perl 6 module that makes it easy to write Scalable Vector Graphic files, short SVG.

Right now it is a shallow wrapper around XML::Writer, adding only the xmlns attributes that identifies an XML file as SVG.

For building an running the tests, we recommend to obtain zef and then run

$ zef install SVG

You can then use it like this:

use SVG;
say SVG.serialize(
    svg => [
        width => 100, height => 10,
        :rect[:x<5>, :y<5>, :width<90>, :height<90>, :stroke<black>],
    ],
);

Author: Moritz Lenz License: Artistic License 2.0

About

SVG writing module for Perl 6

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages