cl-svg-polygon

(Or svgp for short). This is a pure-lisp library that takes an SVG file and generates, for each SVG object, a set of points that outline the object. It approximates curves based on a given resolution: the higher the resolution, the more accurate the curve is (this works for paths, circles, ellipses). This package relies on xmls to parse the SVG file's XML.

cl-svg-polygon also calculates transformations within the groups and objects in the file to the final points/holes returned for each polygon.
Usage

Parse the contents of an SVG string:

(svgp:parse-svg-string "...")

Parse the contents of an SVG file:

(svgp:parse-svg-file "drawing.svg") ; wraps around parse-svg-string

This is my fork of the Andrew Lyon code which I had to steal to feed my 2d/3d plotter with HPGL and other data. It's also most compact svg renderer I could find in any programming language. 10/10 would recommend.

Project Activity

See All Activity >

Follow cl-svg-polygon

cl-svg-polygon Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of cl-svg-polygon!

Additional Project Details

Registered

2019-11-22