using maths functions in python turtle graphics


import turtle as t
import math as m
t.bgcolor('black')
t.tracer(20)
f=0
t.setup(1537,865)
for i in range(200000):
    f+=0.0001
    t.pencolor('red')
    y=m.cos(20*f)+m.cos(20.1*f)
    r=m.sin(90*f)+m.sin(90.01*f)
    t.setpos(180*y,180*r)
t.done()

Comments

Popular posts from this blog

free fire logo || python turtle graphics code

python turtle animation 15

python turtle animation (3)