Re: Drawing polygons from traverse information
| From: | Greg Donald | Date: | Mon, 08 Nov 2004 19:47:10 +0000 |
| Subject: | Re: Drawing polygons from traverse information | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201560@lists.php.net to get a copy of this message | ||
On Mon, 8 Nov 2004 11:36:39 -0500 (EST), Jim Wharton
<creole3@bellsouth.net> wrote:
> What I am trying to do is implement something along the lines of LOGO.
> (You know, that old language that told a robotic turtle to draw on the
> floor)
Man.. it was like 1987 when I last used LOGO. We were using Apple
IIc's and stuff. The nostalgia is overwhelming. :)
> Seriously, I currently have an inherited Java program that takes traverse
> information (strings that look like this: BAS(L66D24R66U24)) and createds
> this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
This sort of string parsing could be handled with preg_match_all().
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/