Share your repls and programming experiences

← Back to all posts
DRAW with python turtle!
WiNDfaLLx (19)

I managed to program a basic drawing app using only the python turtle module! It was pretty fun to code. I attached some drawings I made ^-^

EDIT: WOW I'M IN THE NEWSLETTER!? I'm honoured! (https://replit-newsletter-16--timmy-i-chen.repl.co/?ref=newsletter)
I'm working on a couple games, so watch out! (Although they probably won't be done soon, because it's GCSE year, ugh...)

Commentshotnewtop
timmy_i_chen (940)

That flower is so cool

WiNDfaLLx (19)

@timmy_i_chen Thank you! Yeah, I do some digital art in my free time :)

hayaodeh (142)

This is really nice<3

WiNDfaLLx (19)

@hayaodeh Thank you! This means a lot, it's my first post ^u^

raseekaK (0)

how to run the program

WiNDfaLLx (19)

@raseekaK click 'open' in the embedded repl box thing at the bottom (or go here https://repl.it/@WiNDfaLLx/turtle-art-SMOOTHER-NO-SAVE), then click the big green 'run' button.

The_Emira (0)

:) it would be cool if there were more then 2 (3?) colours but it's really cool!

WiNDfaLLx (19)

@The_Emira Thanks so much! And you can change the colours by pressing X. There are instructions in the console. You need to put it into a weird box thing because for some reason the input module doesn't work, it refreshes the screen before the colour is saved for some reason :/

AnkurAhir (0)

This code was pretty cool. I would like to understand how you did your code. I am pretty recent into coding with Java

WiNDfaLLx (19)

@AnkurAhir Thank you! I am self-taught and used a website called Codecademy to learn Python. I then read through the Python Turtle documentation for some interesting functions (the screen.onkey ones let you use keys!) and implemented them into my code. So yeah. Highly recommend Codecademy.

AnkurAhir (0)

@WiNDfaLLx Thanks for the suggestion. I will use Codeacademy to learn Python. :D

WiNDfaLLx (19)

@AnkurAhir :D You're welcome! Good luck!

WiNDfaLLx (19)

Please let me know if you catch any bugs! I know you almost always have to click the pen twice to draw, this was inevitable since otherwise the pen won't move from place to place :O

amasad (1258)

@WiNDfaLLx how do you change the colors?

amasad (1258)

@amasad Found the instructions in the console.

WiNDfaLLx (19)

@amasad Thank you very much! Yeah, the instructions should pretty much cover it all. :D