Hi Brian --
If you wanna go to a lot of work, but not a huge amount, write wrapper class
for the Standard Library turtle that intercepts its commands and updates an
on-board data structure, representing pixels x pixels, specifying self
position, keep color info stashed per each one. That's a lot
* Helene Martin:
I'm almost sure that there's no way for a turtle to know anything
about the background. That's an unfortunate limitation!
The "background" for the turtle is just a Tkinter canvas. So yes, it's
technically possible to inspect things there, since there is method to obtain
the
I'm almost sure that there's no way for a turtle to know anything
about the background. That's an unfortunate limitation!
As for putting a limit on a turtle's travel, you need to write an
appropriate conditional. For example, if you want your turtle to stay
within a 200x200 square centered aroun