Introduction to Logo Turtle
LogoTurtle is currently the FIRST and only one Chrome Extension for Turtle Graphics. I have also written a PHP version of Logo Interpreter in 2006 but that runs only on the server.

Previous Contributions
- v0.0.10: Turtle Programming: Fractal Stars, Random, Console, Eraser, SetPC, SetXY, Examples, Wait, Bug Fixes and So much more!
- v0.0.9: Turtle Programming v0.0.9: Add SetX, SetY, Square and Rect!
- v0.0.8: Turtle Programming v0.0.8: / / comments, dotxy, and javascript!
- v0.0.7: Turtle Programming v0.0.7: Functions with Parameters + Recursion!
- v0.0.6: Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!
- v0.0.5: Turtle Programming v0.0.5: Adding IF/ELSE and STOP!
- v0.0.4: LogoTurtle: Make Variables and Comments
- v0.0.3: Turtle Graphics Programming Update: Adding text, jump, dot, fontsize, download as png
- v0.0.2: LogoTurtle v0.0.2: ShowTurtle, HideTurtle, Color, Width and Help.
- Teach Your Kids Programming - The First Logo Interpreter (Turtle Graphics) in Chrome Extension!
v0.0.1
v0.0.11 New Features
This Commit has the following changes:
- Add While Loop
- Add Do/Else Loop
- SetXY - Y Coordinate reversed to match math coordinate.
- Understore is allowed in variable names.
- Add global variables: turtlex, turtley and turtleangle
- Add Unit Tests
npm test
Screenshots
In LOGO programming language, there isn’t a While Loop. The boolean expression is evaluated per loop iteration. For example:
1 | make "x 0 |
The Do/Else is a syntax sugar as if (condition) { while (condition) { /* loop */} } else { / * else */}
1 | cs ht make "x 10 |
The above draws a square if x=0 and a star if x is set to above 4.
1 | to spiral :size |
can be re-written in non-recursive DO loop (the else is optional).
1 | to spiral :size |

Implement the LOGO/DO loop in Javascript
1 | case "do": |
Roadmap of Chrome Extension: Logo Turtle
I believe LogoTurtle is more or less in beta now. Therefore, bug Fixes and any suggestions, please shout @justyy
Technology Stack
If an App can be written in Javascript, eventually it will be written in Javascript.
Chrome Webstore
Install the Turtle Programming for Kids Now!
Contribution Welcome
Github: https://github.com/DoctorLai/LogoTurtle
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request.
Posted on Utopian.io - Rewarding Open Source Contributors
This page is synchronized from the post: Turtle Programming: While Loop, Do/Else Loop and Unit Tests Added






