Beautiful Circle Colour

 Beautiful Colorful circle I made it by python .I just use turtle from turtle library.

now i want to share my code for that you can easily make it .

please make sure subscribe my channel : sk khandokar

 first you must install turtle.then start your code .

The code given you in below:

 


 

 # import turtle package
import turtle

# screen object
sc = turtle.Screen()

# turtle object
pen = turtle.Turtle()


# Driver Code
# colors
col = ['violet', 'indigo', 'blue', 'green',
 'yellow', 'orange', 'red']

# screen size
sc.setup(500,500)

# screen color
sc.bgcolor('black')

# turtle size
pen.pensize(4)

# turtle object
pen.speed(20)

# integer variable
# for accessing colors
i = 0

# loop to draw 30 circles
for angle in range(0, 360, 12):
 
# color of circle
  pen.color(col[i])
 
  if i == 6:  
      i = 0
 
  else:
     i += 1

  pen.seth(angle)

  pen.circle(80)
 

pen.ht()

 

you just copy the code and try on your IDE.

If you have face any problem in coding you can contact me on youtube video .I must respond you./


Comments