Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import the turtle library for
- # drawing the required curve
- import turtle as tt
- # Set the background color as black,
- # pensize as 2 and speed of drawing
- # curve as 10(relative)
- tt.bgcolor('black')
- tt.pensize(2)
- tt.speed(10)
- # Iterate six times in total
- for i in range(6):
- # Choose your color combination
- for color in ('red', 'magenta', 'blue',
- 'cyan', 'green', 'white',
- 'yellow'):
- tt.color(color)
- # Draw a circle of choosen size, 100 here
- tt.circle(100)
- # Move 10 pixels left to draw another circle
- tt.left(10)
- # Hide the cursor(or turtle) which drew the circle
- tt.hideturtle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement