Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson2-1-2_DIY1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson2-1-2_DIY1
  • star.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 985ccfc4
    BellCodeEditor committed a year ago
    985ccfc4
star.py 266 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
colors=["green","red","orange","yellow"]
pen.speed(0)
for i in range(1000000000):
    pen.pencolor(colors[i%4])
    pen.forward(i)
    pen.right(91)
    
pen.hideturtle()
turtle.done()