-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the module turtle, color() doesn't change the color of write() #2223
Comments
Im gonna answer you : color("blue") doesn't choose the color blue, it just return a value, here if you do print(color("blue")) it will return (0,0,255) . If you want to change the color, well just use kandinsky library, it's easier and faster, if you want to write a text using this, do draw_string("text",x,y,color_background_of_text,color_text) . Have a nice day ! |
color("blue") does not affect write but affect the color of lines, i think this is not a bug and this is just that they dont think of adding this possibility . |
It's indeed a feature and not a bug but we can consider adding the feature though @adri1numworks. |
I've noticed that NumWorks' |
Thanks for your comments. An issue was created internally to make NumWorks Python correspond to CPython regarding turtle.color() |
Describe the bug
In the module turtle,
color()
doesn't change the color ofwrite()
. E.g.types text in black.
Screenshots
The same program running on Numworks and in Python3 in Linux:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text written using write() should have the same color as lines drawn using the turtle.
Environment
The text was updated successfully, but these errors were encountered: