str.py

Created by mkalkavan

Created on August 04, 2020

469 Bytes


from math import *
from turtle import *

def str(rad,d,h):
  
  ht()
  make(n1)
  pu()
  setx(rad)
  pd()
  for i in range(360):
    fd(rad*pi/180)
    lt(1)
    pu()
    home
    for i in range(36*rad):
      fd(rad) 
      make(p) 
      pos 
      home
      hdg()
      fd(rad)
      pd()
      setpos(p)
      pu()
      home
      hdg1()
      make(n=n+1)
def hdg():
  (n*5*d)%360
def hdg1():
  (5*(n-1))%360
def pi():
  3.14159

str(100,2,2)

        

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.