PyTamaro

2026-01-09. Filed in public, twoville.

I recently watched an episode of the Computing Education Things podcast in which host Daniel Prol interviewed professor Matthias Hauswirth about teaching computing through the lens of graphics programming. Hauswirth built the learning platform PyTamaro. I'm afraid I didn't listen for the big ideas because I'm already a member of the choir. Rather I was interested in the graphics. These four images were begging to be recreated in Twoville:

Twoville code is not shorter than PyTamaro code. There are a couple of reasons for this. First, Twoville uses a declarative approach in which properties are explicitly named across multiple lines. By design, it doesn't have a compact one-line function for drawing a circle. Second, I expressed these shapes parametrically. For the most part, you can modify the variables at the top and see the whole image adapt. This is especially fun to see on the pencil. Put your cursor on the first vertex of the eraser and then drag the handle.