r/madeinpython • • Apr 13 '22

I made a sine wave in python turtle because I have nothing better to do, apparentaly

33 Upvotes

8 comments sorted by

3

u/ThePeopleAtTheZoo Apr 13 '22

Turn it into audio!

1

u/KYO297 Apr 13 '22

I'm afraid I don't know how

1

u/KYO297 Apr 14 '22

I've just realised this code basically draws the integral of any function you put inside the arctan(). It cannot deal with asymptotes though.

2

u/ImNotcatcatcat80 Apr 13 '22

Nice.
And PyCharm is a masterpiece of an IDE.

1

u/Norrland_props Apr 14 '22

Import time module and use sleep method during each iteration of the while loop

1

u/[deleted] Apr 14 '22

[removed] — view removed comment

2

u/KYO297 Apr 14 '22

Here you go. It now runs at the turtle's default speed, I don't know how to change it. It also looks better, the turtle doesn't wiggle now.