| I made two other major changes: | Neither of the versions sent to edupython came through in the email very well; the double underscores were converted to singles. I don't know where the change is happening, but maybe they should be sent as an attachment...but if you already did, then I suppose I could have downloaded them on the google site instead. If so, nevermind.
| - I don't think the speed (and delay) functions should return a | value when speed is None. That's effectively making them both setters | and getters, which is not good style. It forces the programmer to | remember this non-standard convention, and turtle.py already has some | odd conventions (e.g. the fill(1)/fill(0)). Thus I changed them both | to be simply setters. If getters are wanted, then lets add those as | separate functions. | I've addressed this in a recent post (about the need for inquiring about the state in general). | - I added helper functions begin_fill() and end_fill(), which can | be used in place of fill(1) and fill(0). I can never remember if it is | fill(1) or fill(0) that should be called first. 1=filling on, 0=filling off seems pretty straightforward. I'm -0 on making a change. | | # LogoMation-like turtle graphics [x] | | Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it | the command turtle.forward(15), and it moves (on-screen!) 15 pixels in | the direction it is facing, drawing a line as it moves. Give it the | command turtle.left(25), and it rotates in-place 25 degrees clockwise. It turns counterclockwise with left(25). [x] | When viewed from above, the turning happens in-place around | its center point. I think this would be nice, but it actually pivots on the pen in its mouth. I think Xturtle has the right behavior, though. /chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "edupython" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/edupython -~----------~----~----~----~------~----~------~--~---
