The user interface, written in TK, will have push buttons for the user
to tell the turtle to move forward one unit, turn left, and the like.
The commands will be catenated into a text string containing Logo
commands. The Logo interpreter will take this string and produce another
string, this one containing TK palette commands to draw the picture.
I don't expect much difficulty on the Logo end. I haven't looked at the
guts of any Logo interpreters recently, but I assume they have a
division between the interpreter proper and the graphical output
subsystem. That being the case, it shouldn't be too difficult to change
the output from graphics subsystem commands to TK commands.
Does all this sound workable on the TCL/TK end? Send comments by email
or posting; if I get substantive comments by email I'll summarize them
here.
Thanks,
Steve Furlong, geek and dad
Great idea. Tk is very well suited to such. IIRC, It should be
rather easy to build a logo interpreter in Tcl/Tk. The interface
would be a big bonus on top, and also easy.
--
Jeffrey Hobbs The Tcl Guy
jeffrey.hobbs at scriptics.com Scriptics Corp.
Sounds great! Note that in
<URL: http://www.purl.org/NET/Tcl-FAQ/part5.html>
What: turtle graphics
Where: <URL: ftp://ftp.neosoft.com/languages/tcl/sorted/packages-7.6/unknown/TkTurtle-1.0.shar.gz>
Description: Extended Tcl/Tk simple Logo-like turtle graphics package.
Updated: 10/1998
Contact: <URL: mailto:k...@comp.vuw.ac.nz> (R James Noble)
This code is based on an older version of tcl, but may give you ideas on things to do ...
--
<URL: mailto:lvi...@cas.org> Quote: Pikachu, I choose you!
<*> O- <URL: http://www.purl.org/NET/lvirden/>
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.