Forwarded from PythonHub
Link ππππ
https://copyassignment.com/microsoft-giving-free-python-course-in-2023-enroll-now/
https://copyassignment.com/microsoft-giving-free-python-course-in-2023-enroll-now/
image_2023-11-04_13-13-31.png
193.1 KB
Code for this design
πππππππ
πππππππ
import turtle
import colorsys
turtle.bgcolor("black")
t = turtle.Turtle()
t.hideturtle()
turtle.tracer (50)
n=2
c=10
for i in range(1200):
p = colorsys.hsv_to_rgb(c, 1, 0.99)
turtle.pencolor (p)
c+=0.002
turtle.circle(-i, n)
turtle.right (100)
turtle.circle(i, c)
turtle.done()
import colorsys
turtle.bgcolor("black")
t = turtle.Turtle()
t.hideturtle()
turtle.tracer (50)
n=2
c=10
for i in range(1200):
p = colorsys.hsv_to_rgb(c, 1, 0.99)
turtle.pencolor (p)
c+=0.002
turtle.circle(-i, n)
turtle.right (100)
turtle.circle(i, c)
turtle.done()
from turtle import *
import turtle as t
def my_turtle():
# Choices
sides = str(3)
loops = str(450)
pen = 1
for i in range(int(loops)):
forward(i * 2/int(sides) + i)
left(360/int(sides) + .350)
hideturtle()
pensize(pen)
speed(30)
my_turtle()
t.done()
import turtle as t
def my_turtle():
# Choices
sides = str(3)
loops = str(450)
pen = 1
for i in range(int(loops)):
forward(i * 2/int(sides) + i)
left(360/int(sides) + .350)
hideturtle()
pensize(pen)
speed(30)
my_turtle()
t.done()
This media is not supported in your browser
VIEW IN TELEGRAM
π Link for source code π
This media is not supported in your browser
VIEW IN TELEGRAM
π Link for source code π