Skip to content

harte #113

Description

@mssd30850-web

import turtle
import math
import random
screen = trutle.Screen()
screen.bgcolor("black")
t= turtle.Turtle()
t.speed(0)
t.hideturtle()
t.pensize(1)
color = ["red", "blue", "lime",
"yellow", "cyan", "magenta", "orange",
"pink"]
for i in range(120):
t . penup()
t . goto(0, 40)
angle = i * (math . pi * 2) / 120
x = 16 * (math . sin(angle) **3) * 15
y = (13 * math . cos(angle) - 5 *
math . cos(2 * angle) - 2 * math . cos(3 *
angle) - math . cos(4 * angle)) * 15
c = random . choice(colors)
t . color(c)
t . pendown()
t . goto(x, y)
for _ in range(8):
t . forward(6)
t.backward(6)
t.right(45)
turtle.done()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions