Draw faster circles with Python turtle -


i have exercise wherein have draw lot of circles python turtle. have set speed(0) , using:

from turtle import* speed(0) i=0 while < 360:     forward(1)     left(1)     i+=1 

to draw circles. takes long. there faster way?

you draw fewer segments, rather 360 go 120:

while < 360:     forward(3)     left(3)     i+=3 

that make circle less smooth, 3 times faster draw.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -