Closed bdklahn closed 3 years ago
I am now releasing a new version where some more of the original API is supported. With that update only shape()
, circle()
and write()
would not work from this example.
I assume that I can add write()
and shape()
to this library as well, but not sure of circle()
. I know that some exercises/homeworks involve drawing a circle manually (by a loop of 360 iteration etc.) ; so including the functionality itself into this library would harm some instructor's purposes.
For shape()
, i guess we can find some svg images. For write()
, svg should support written content as well.
I am releasing these changes to github now. I will be glad if you do a little test and let me know. In the meanwhile, I will be working on shape()
and write()
. After we are done with them as well, I can release the project to pip (PyPi).
(Disclaimer: this library handles angles differently than the classical library and I cannot alter the behaviour now, due to backward-compatibility. 0 angle is east and the angles increase in the clockwise direction. I guess this behavior was borrowed by blockly games' turtle game.)
I'm not a huge fan of the circle function, anyway: a) It almost seems more appropriate to call it "polygon" (but I guess it is contained in a circle). b) I agree that something like that might be good to save as an exercise.
Yeah . . . The/a maintainer of the other Turtle doesn't seem to care to continue work on that, and thinks that somewhat patched together computer GUI code isn't worth leveraging for a/this web-based version. So, while I think it is nice to have/wrap things to generally match that API, I think it is OK to have this be a Turtle "reboot", with some differences.
Yes, my initial thought with this library was something like a "reboot". I had no intention to replace the standard turtle library fully. But now, it's like we are really close to that, and that should be enough for most people. If this library is for educational purposes mostly, all students see Python for the first time. So, they can just learn Turtle in this library's way :)
For circle, yes that is an even polygon, hard to call it a circle if you don't make it like 360 pieces.
Closing as the discussion on v2.1.0 has ended and the version is submitted to PyPi. For any further recommendations, please feel free to open an issue. I will try to add as much to this project as possible ! 👍 Thanks for your great efforts to lead this project and its API for the best
I realize this may not be a main priority for you. And I should probably get back to my real work (also?). :-)
But I thought I'd share my daughter's (Avery Klahn) code. You are welcome to copy/adapt (any part of) it, to use as an example in this repo at some point. :-)
If the following Trinket URL is still valid, you should be able to see it in action there. https://trinket.io/python/2d4218daeb