Hacker News new | comments | show | ask | jobs | submit login

That looks pretty neat: the use of context managers seems very nice.

But is "canvas" (and "HtmlCanvas") meant to refer to the HTML5 <canvas> element? If not, I can see that being a point of huge confusion.

no it isn't, and you raise a good point, I'll change it

canvas.canvas() would definitely look weird

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact