> I am trying to think of things to do with the turtle module
> 1) is there a way to determine the current screen pixel color?
This would not use the included turtle module, but you could use
the turtle module from the pygsear collection:
http://www.nongnu.org/pygsear/
It requires pygame, but
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
Hello,
I am trying to think of things to do with the turtle module with my
students, and I have some ideas where I am not sure whether the
turtle module can do it.
1) is there a way to determine the current screen pixel color? I am
thinking about having the turtle go forward until it rea