#svg

svggen

Allows you to create vector images from templates

3 releases (stable)

2.0.0 Apr 22, 2022
1.0.0 Apr 20, 2022
0.1.0 Apr 8, 2022

#207 in #svg

Apache-2.0

13KB
125 lines

SvgGen

An image generation system that allows you to create vector images from templates.

Model

A template is an image (in svg format) with special lines that will be replaced by the argument given in the generation command.

In a template, each line that matches #GET n will be replaced by the index argument n.

Example

<svg width="100" height="100">
    <!-- The line will be replaced by the index argument `0` -->
    #GET 0
</svg>

Dependencies

~54KB