Turtle Graphics - Small Basic Featured Program


Today I will introduce my Turtle Graphics program written in Small Basic.

This project was started in a forum thread "Another Turtle Graphics" on March 21, 2014.  This project aimed to create a programming environment used before Small Basic.  But the development of this Turtle Graphics program has been suspended until this month.

So I proposed to create newer version of the Turtle Graphics for "Challenge of the Month - April 2015".

Then the latest version of this Turtle Graphics is XVK119-3.

This version supports:

  • Following commands.
    • FORWARD n (to move the turtle n pixels)
    • RIGHT n (to rotate the turtle right n degrees)
    • LEFT n (to rotate the turtle left n degrees)
    • PENUP (to lift the pen up)
    • PENDOWN (to set the pen down)
    • REPEAT n [commands] (to repeat commands n times)
  • Nested REPEAT.
  • To skip opening with space key.

See Also

Comments (13)

  1. I love turtle challenges like this!

  2. Another good job Nonki 🙂

  3. anonymouscommenter says:

    lace:

    {rpt:25

    Fwd 30

    {rpt:3 [

    Rght 95

    Fwd 140

    ]}

  4. anonymouscommenter says:

    flower:

    {25

    F 100

    {3 [

    R 65

    F 40

    ]}

  5. anonymouscommenter says:

    triangle star

    {25

    F 40

    {3 [

    R 125

    F 50

    ]}

  6. anonymouscommenter says:

    2 flowers

    {2

    {36 [

    R 170

    F 140

    ]

    U

    F 200

    D

  7. anonymouscommenter says:

    diamonds

    {rep:10

    R 108

    {5 [

    R 72

    F 80

    ]

  8. anonymouscommenter says:

    pentadiamond hyperstar

    {rep:5

    {10 [

    S 1

    R 108

    {5 [

    R 72

    F 80

    ]

    ]

    R 144

    U

    F 210

    D

  9. anonymouscommenter says:

    advanced version of prog:

    -shortened cmds

    -colors

    -main repeat loop must be first line

    -scaling S 1.02 (exponential!)

  10. anonymouscommenter says:

    added right click menu

    save n load menu (req. define location)

    code: DMX970

  11. Qwx, that's very cool!

  12. anonymouscommenter says:

    kan tell anyone me how to write elbuhar kamberi with turtle program its very important

  13. Hi Elbuhar! Please ask a specific question over in the Small Basic forum:

    social.msdn.microsoft.com/.../threads

    Thanks!

Skip to main content