Skip to content

Romop5/procgen-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProcGen for SVG generation

An example of using ProcGen library for SVG images.

Examples

Turtle graphics

Usage

  1. Write down script using ProcGen language and primitives defined in svg.procgen.
  2. Run ./svgprocgen <scriptName> <pictureName.svg> [<JSONparameterLiteral] to get SVG picture.
  3. Use convert from ImageTricks to convert SVG to PNG.

Note: you can change parameter's value from command-like. For example, if you define parameter int iterations = 1; in script test.procgen, then you can call render with overwritten value like this:

`./svgprocgen "test.procgen" "test.svg" '{"iterations": 10}'

Releases

No releases published

Packages

No packages published