]> git.cworth.org Git - zombocom-ai/commitdiff
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)
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).


No differences found