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 (Darkly)
  • No Skin
Collapse

Chebucto Regional Softball Club

  1. Home
  2. Uncategorized
  3. Let's say you want to draw a hypocycloid (spirograph) with a turtle.
A forum for discussing and organizing recreational softball and baseball games and leagues in the greater Halifax area.

Let's say you want to draw a hypocycloid (spirograph) with a turtle.

Scheduled Pinned Locked Moved Uncategorized
3 Posts 2 Posters 0 Views
  • 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.
  • myrmepropagandistF This user is from outside of this forum
    myrmepropagandistF This user is from outside of this forum
    myrmepropagandist
    wrote on last edited by
    #1

    Let's say you want to draw a hypocycloid (spirograph) with a turtle. I use a parametric equation for each of the circles and combining them to find the x and y position of the points on the curve then telling the turtle to goto(x,y)

    This works fine, however it is NOT in the intended "spirit" of drawing with a turtle. Drawing with a turtle is about "relative" navigation. Consider two ways to draw a circle:

    for 0<t<2pi:
    goto(rcos(t), rsin(t))

    repeat 100:
    forward 2
    right 2

    Bjørnar (he/him)B 1 Reply Last reply
    1
    0
    • myrmepropagandistF myrmepropagandist shared this topic
    • myrmepropagandistF myrmepropagandist

      Let's say you want to draw a hypocycloid (spirograph) with a turtle. I use a parametric equation for each of the circles and combining them to find the x and y position of the points on the curve then telling the turtle to goto(x,y)

      This works fine, however it is NOT in the intended "spirit" of drawing with a turtle. Drawing with a turtle is about "relative" navigation. Consider two ways to draw a circle:

      for 0<t<2pi:
      goto(rcos(t), rsin(t))

      repeat 100:
      forward 2
      right 2

      Bjørnar (he/him)B This user is from outside of this forum
      Bjørnar (he/him)B This user is from outside of this forum
      Bjørnar (he/him)
      wrote last edited by
      #2

      @futurebird Good thing I skimmed through the replies. Didn't realize this was old until I saw I'd already replied with similar thoughts I was getting now.

      myrmepropagandistF 1 Reply Last reply
      0
      • Bjørnar (he/him)B Bjørnar (he/him)

        @futurebird Good thing I skimmed through the replies. Didn't realize this was old until I saw I'd already replied with similar thoughts I was getting now.

        myrmepropagandistF This user is from outside of this forum
        myrmepropagandistF This user is from outside of this forum
        myrmepropagandist
        wrote last edited by
        #3

        @btuftin

        I'm still looking for a more natural way to describe the spirograph in this context... and it's time for this lesson soon enough so I'm reworking it again.

        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.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups