r/madeinpython • u/KYO297 • Apr 13 '22
I made a sine wave in python turtle because I have nothing better to do, apparentaly
33
Upvotes
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
1
u/Norrland_props Apr 14 '22
Import time module and use sleep method during each iteration of the while loop
1
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.


3
u/ThePeopleAtTheZoo Apr 13 '22
Turn it into audio!