Variable-width Bézier Curves

© 2025-12-30 Luther Tychonievich

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

other posts

How to draw them with current 2D graphics APIs, needed to supporting board work tablet tools.

In 2013 I began teaching university classes, and quickly realized that I wanted to be able to do board work – where I write and draw by hand live in front of the class – but that my rooms did not have large enough boards to be clearly seen by the number of students they contained. So I purchased a graphics tablet11 Initially a Wacom Intuos 4, though I’ve purchased several others since then and tried various tools that were extant at that time. I was dissatisfied with them all so the summer of 2014 I wrote my own boardwork application, and have kept tweaking and re-writing so that I now have eight completed: three in JavaScript22 Two used an old Firefox plugin to get pressure data, one backed by SVG and the other by Canvas; both stopped working when Firefox updated their plugin system. The other uses HTML5’s PointerEvent API and is backed by Canvas. and five in D33 Two using GTK3 and Cairo, one using GTK4 and GSK, two using software renderers of my own creation..