Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I think I accidentally made the golden ratio spirograph...

I think I accidentally made the golden ratio spirograph...

Scheduled Pinned Locked Moved The Lounge
pythondesignperformancequestiondiscussion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oofalladeez343
    wrote on last edited by
    #1

    I was messing around with Python Turtle because I had nothing better to do... And while I was messing around, I did this...

    import turtle
    def main():
    t = turtle.Turtle()
    t.shape("turtle")
    t.speed(100)
    t.right(10)
    length = 1
    t.color("crimson")
    for i in range(250):
    t.forward(length)
    t.right(100)
    length = length + 0.5
    main()

    And it looks very much like the golden ratio in the center... So I tried this...

    import turtle
    def main():
    t = turtle.Turtle()
    t.shape("turtle")
    t.speed(100)
    t.right(10)
    length1 = 1
    t.color("crimson")
    for i in range(250):
    t.forward(length1)
    t.right(100)
    length1 = length1 + 0.5
    t.penup()
    t.setpos(0,0)
    t.pendown
    length2 = 1
    for i in range(250):
    t.forward(length2)
    t.left(100)
    length2 = length2 + 0.5
    main()

    And there was only one difference in the design, where the code stops is mirrored... That's it... No other variation... Any opinions?...

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups