Get the latest tech news

An interactive guide to SVG paths


SVG gives us many different primitives to work with, but by far the most powerful is the <path> element. Unfortunately, it’s also the most inscrutable, with its compact Regex-style syntax. In this tutorial, we’ll demystify this infamous element and see some of the cool things we can do with it!

But here’s the thing: The difference in file size is negligible, especially when considering gzip compression (a standard feature built into all modern web servers). If you give me one of those elementary school geometry kits, I could produce a circle using this method: Stick the spike into the center coordinate and spin a full 360°. In practice, though, I generally find myself using vector graphics software if my shape includes many chained curves (like the cloud swoops at the top of this page).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of interactive guide

interactive guide

Photo of svg paths

svg paths

Related news:

News photo

An interactive guide to sensor fusion with quaternions

News photo

An Interactive Guide to Rate Limiting

News photo

An interactive guide to x86-64 assembly – moving data