An introduction to Polygonical and ESVG

For the last ${scairy_number_of_years} years I’ve been working on some library tooling to create SVG files using rust. There are some libraries that existed already but they either didn’t work for what I needed to do or they had limitations. So I build two libraries of my own. Polygonical and ESVG. Polygonical focuses on 2d geometry operations. Points, lines, polygons and doing things to them. It does not concern its self with how they are shown, what format they are written to disk or anything like that....

2025 June 7 · Emily Selwood

Turning an SVG into a PDF in rust

I have some code that creates pages of shapes. My wife uses this to create products for her etsy shop. I originally wrote this in java many years ago. Some time last year I decided to rewrite the entire thing in rust. There were a number of reasons for this. Mostly that I’d learned a heck of a lot since I designed the original architecture and wanted some features that would not be possible with out rewriting most of it any way....

2023 January 17 · Emily Selwood

SVG

lets talk about SVGs as an image format. You may have heard of them called a vector format. This means that instead of defining a grid of pixels and having about what colour every pixel is, it defines the features of the image. There is a red line from 12,45 to 26,78 The text “hello” is in front ariel, 14pt and blue etc. The advantage of this is you can scale the image with out losing any quality....

2022 November 23 · Emily Selwood