# A professor built eight drawing apps because 2D graphics libraries can't draw variable-width curves

Original title: Variable-width Bézier curves (2025)

> Hacker News story 50423664 · language: en · submitted 2026-11-09
> Web version: https://zeli.app/story/50423664
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 37 · by [leduyquang753](<https://news.ycombinator.com/user?id=leduyquang753>) · 💬 11
[original](<https://luthert.web.illinois.edu/blog/posts/775.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50423664>)

## Summary

Luther Tychonievich wanted to do live board work on a graphics tablet but found no 2D graphics API offers Bézier curves with a pen-width coordinate, so he wrote his own boardwork application—eight times over. He compares three pressure-to-width models, explains why circular offsets beat linear ones against stylus jitter, and walks through the Bézier math (de Casteljau splitting, hodographs, squaring polynomials) needed to render smooth variable-width strokes.

## Key quote

> Throughout this development experience I've been continually frustrated by the lack of an important primitive in 2D graphics libraries: Bézier curves with a pen width coordinate.

## HN discussion (11 comments)

### [WillAdams](<https://news.ycombinator.com/item?id=50444991>)

> In case the author reads this:
>
> \>The stroke boundary algorithm could be extended to 3D by generating a ring (instead of a pair) of stroke boundary points at each sample point. I do not know of compelling uses for such a 3D element.
>
> That would actually be an excellent way to describe a V-carving toolpath for a CNC router.

### [AlphaCerium](<https://news.ycombinator.com/item?id=50444511>)

> It's a breath of fresh air to see an article that so clearly and carefully explains a concept amongst the sea of llm-prose.

### [xigoi](<https://news.ycombinator.com/item?id=50445267>)

> Why is there not a single picture in an article about Bézier curves?

---

## Cite

- Page: https://zeli.app/story/50423664
- Date: 2026-11-09
- Source: luthert.web.illinois.edu (https://luthert.web.illinois.edu/blog/posts/775.html)
- Hacker News: https://news.ycombinator.com/item?id=50423664

## Other languages

- zh: https://zeli.app/zh/story/50423664 · markdown: https://zeli.app/zh/story/50423664.md
- ja: https://zeli.app/ja/story/50423664 · markdown: https://zeli.app/ja/story/50423664.md
- ko: https://zeli.app/ko/story/50423664 · markdown: https://zeli.app/ko/story/50423664.md
- de: https://zeli.app/de/story/50423664 · markdown: https://zeli.app/de/story/50423664.md
- es: https://zeli.app/es/story/50423664 · markdown: https://zeli.app/es/story/50423664.md
- ru: https://zeli.app/ru/story/50423664 · markdown: https://zeli.app/ru/story/50423664.md
