#Optimising Turtle Drawing

1 messages · Page 1 of 1 (latest)

elder otter
#

Hi everyone,

Recently ive been experimenting with the turtle library and its limits.

This is more of a theoretical question with not really any code behind it but ive found that changing the pen colour on the turtle to be much more computing heavy than actually moving the turtle around (i am using the IDE, not sure if that affects it) and was wondering if anyone knows a more optimal way to handle colour changing at a large scale.

The only method ive come up with to overcome this issue is to preload a ton of turtles with the colour i'll be using before hand but obviously this is not optimal as i'll end up with hundreds of turtles if a lot of different colours are being used.

any ideas would be appreciated

finite stirrupBOT
#

@elder otter

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

finite stirrupBOT
#

@elder otter

Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

🔒 Optimising Turtle Drawing