Gravatar 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


Gravatar Very nice tutorial. I will definitely recreate this tutorial myself and notify you of expansions.



Gravatar On the original topic of ASCII to diagram, in Python there's this: http://docutils.sourceforge.net/...echti/aafigure/


Gravatar Mark. Would that be an entire chess game in javascript on your blog?
Very nice!


Gravatar 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.


Gravatar 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?


Gravatar You can make white pieces by drawing a "black" piece in white, then overlaying that with a "white" piece in black.


Gravatar > 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


Gravatar Here's a nice demo of emacs ascii art mode.


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan