A free, web-based Logo programming environment for students. Learn programming through turtle graphics directly in your browser!
Logo is an educational programming language designed in 1967 to teach programming concepts to beginners. It uses a "turtle" - a cursor that can be moved around the screen to draw shapes and patterns.
- Full Logo interpreter with 50+ commands
- Turtle graphics with real-time rendering
- Procedures & variables - define your own commands
- Control structures - REPEAT, IF, FOR, WHILE
- Multiple turtles - create complex animations
- Lists support - advanced data manipulation
- Save & load - save your work locally
- Example programs - learn from built-in examples
- Command reference - in-app help
- Works offline - no server required
- Free forever - no sign-up, no ads
- Visit the LogoLab website
- Type some code in the editor, for example:
REPEAT 4 [FD 100 RT 90] - Click Run (or press Ctrl+Enter)
- Watch the turtle draw a square!
REPEAT 5 [FD 100 RT 144]
TO SPIRAL :size
IF :size > 200 [STOP]
FD :size
RT 91
SPIRAL :size + 2
END
SPIRAL 1
TO PETAL
REPEAT 2 [
REPEAT 30 [FD 3 RT 3]
RT 90
]
END
REPEAT 12 [PETAL RT 30]
| Command | Description |
|---|---|
FORWARD n / FD n |
Move forward n steps |
BACK n / BK n |
Move backward n steps |
LEFT n / LT n |
Turn left n degrees |
RIGHT n / RT n |
Turn right n degrees |
HOME |
Return to center |
SETPOS [x y] |
Move to position |
| Command | Description |
|---|---|
PENUP / PU |
Lift pen (stop drawing) |
PENDOWN / PD |
Lower pen (start drawing) |
SETPENCOLOR color |
Set pen color |
SETPENSIZE n |
Set pen width |
| Command | Description |
|---|---|
REPEAT n [...] |
Repeat commands n times |
IF cond [...] |
Execute if condition is true |
TO name ... END |
Define a procedure |
See the in-app Help button for the complete command reference.
- Auto-save: Your code is automatically saved to your browser
- Save button: Download your project as a
.logofile - Load button: Open a previously saved
.logofile
- Download or clone this repository
- Open
index.htmlin your browser - That's it! No build step required.
LogoLab is free and open source. If you find it useful, please consider:
- ☕ Buy me a coffee on Ko-fi
- ⭐ Star this repository
- 📢 Share with teachers and students
This project is inspired by FMSLogo, a wonderful free implementation of Logo. We thank the FMSLogo team for keeping Logo alive for generations of students.
LogoLab is an independent web-based implementation and does not use any FMSLogo code.
MIT License - feel free to use, modify, and distribute.
Made with ❤️ for students everywhere.