]> git.cworth.org Git - zombocom-ai/commit
Add some convenience functions with implicit cairo context
authorCarl Worth <cworth@cworth.org>
Fri, 23 Dec 2022 04:09:51 +0000 (20:09 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Dec 2022 19:51:10 +0000 (11:51 -0800)
commitd0b335cb1b8d7c80eafa77b5095e19ec143d558b
tree9af2dcb1d825f76845793b180cc8bbd987e3454a
parent1e320ca83bc7836cc1462bc67e4048c5c074a469
Add some convenience functions with implicit cairo context

Just to make the code easier to use. So it can look like:

circle(x, y, radius);
fill();

rather than:

cr.arc(x, y, radius, 0, 2 * math.pi);
cr.fill();

Also, provide a set_color() function that accepts a color name as a
string, (using that classic list of color names from X11 I believe).
bus.html
interpret-cairo-to-svg.py