Skip to content

Create Amazing Graphics Using Python’s Turtle Library

Create Amazing Graphics Using Python’s Turtle Library

The Turtle Library of Python programming language allows you to create Amazing Graphics.

Below is a list of these graphics with the source code that you can try.

Graphic Design 1

import colorsys
import turtle

t = turtle.Turtle()
s = turtle.Screen()

s.bgcolor('black')
t.speed(0)

n= 36
h = 0

for i in range (460):

    c = colorsys.hsv_to_rgb(h,1,0.8)
    h+=1/n
    t.color(c)
    t.left(145)

    for j in range (5):

        t.forward(300)
        t.left(150)

Graphic Design 2

import turtle
import colorsys

t = turtle.Turtle()
s = turtle.Screen().bgcolor('black')
t.speed(0)
n = 70
h = 0
for i in range (360):
    c = colorsys.hsv_to_rgb(h, 1, 0.8)
    h+= 1/n
    t.color(c)
    t.left(1)
    t.fd(1)
    for j in range (2):
        t.left(2)
        t.circle(100)

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.