|
|
|
Hi Thomas,
I wrote a sort of a follow-up to your previous article on chessboards, also on the theme of scripting graphics, but showed instead how to draw hex maps using PIL, CoreGraphics (OS X only), SVG, and PyGame.
http://livingcode.org/2008/drawi...drawing-
hexmaps
Enjoying your blog. Kind regards.
--Dethe
Dethe Elza |
Homepage |
2008-03-30 19:23 | #
|
|
Very nice tutorial. I will definitely recreate this tutorial myself and notify you of expansions.

Mark |
Homepage |
2008-03-31 07:56 | #
|
|
On the original topic of ASCII to diagram, in Python there's this: http://docutils.sourceforge.net/...echti/aafigure/
Harry Fuecks |
Homepage |
2008-03-31 09:49 | #
|
|
Mark. Would that be an entire chess game in javascript on your blog?
Very nice!
Thomas Guest |
Homepage |
2008-03-31 09:52 | #
|
|
Harry. Thanks for the aafigure link, which is another great example of what I've been talking about, and what Mark Dominus talks about. Sometimes, though, it's easier to roll your own tools than learn how to use something already out there. It really depends on the actual task in hand.
Thomas Guest |
Homepage |
2008-03-31 10:00 | #
|
|
Dethe. I like the graphics in your article, especially the SVG one, and thanks for the link.
I did try and post a comment on your blog -- but I'm not sure if it's got there, so I'll repeat it here. I suggested using math.hypot instead of squares and sqrts, and looking into math.atan2 to convert between polar and rectangular coordinates. I also wonder if the Aggdraw plugin to PIL would help with the jaggies in the PIL hexmap?
Thomas Guest |
Homepage |
2008-03-31 10:31 | #
|
|
You can make white pieces by drawing a "black" piece in white, then overlaying that with a "white" piece in black.
lf |
2008-03-31 10:52 | #
|
|
> You can make white pieces by drawing a "black" piece in white, then overlaying that with a "white" piece in black.
Positive thinking! I'm not sure why I hadn't figured that out for myself. I've given it a go, and it is an improvement.
http://wordaligned.org/articles/...te-black-
knight
Thomas Guest |
Homepage |
2008-03-31 11:09 | #
|
|
Here's a nice demo of emacs ascii art mode.
Thomas Guest |
Homepage |
2008-04-02 15:49 | #
|
|
|
Commenting by HaloScan
|