Saturday, December 10, 2022

Circle Colors Design Using Python Turtle Graphics

 

import turtle
from turtle import *
tech_habit=Turtle()
screen=Screen()
screen.setup(620,620)
screen.bgcolor('black')
tech_habit.pensize(3)
tech_habit.speed(10)
n=-1
colors = ["#f59a07","#bdf507","#07c5f5","#8207f5","#f5077e","#bdf507","#f53b07","#4307f5"]
for angle in range(0,360,15):
n=n+1
if n==5:
n=-1
tech_habit.color(colors[n])
tech_habit.seth(angle)
tech_habit.circle(100)
tech_habit.pencolor("black")
tech_habit.setpos(-160,200)
tech_habit.pencolor('#07f5cd')
tech_habit.write('Tech Habit',font=("Arial", 70, "normal"))

tech_habit.ht()
turtle.done()

No comments:

Post a Comment

Happy Birthday Priya Using Python Turtle Graphics

Happy Birthday Priya Using Python Turtle Graphics.... import  turtle  as  tech_habit from turtle import * from random import randint ankita ...