An online Logo interpreter written in TypeScript and HTML5 Canvas
| Command | Syntax | Function | Implementation Status |
|---|---|---|---|
FORWARD | FORWARD n or FD n | Moves the turtle forward by n steps. | Yes |
BACKWARD | BACKWARD n or BK n | Moves the turtle backward by n steps. | Yes |
RIGHT | RIGHT angle or RT angle | Turns the turtle clockwise by angle degrees. | Yes |
LEFT | LEFT angle or LT angle | Turns the turtle counterclockwise by angle degrees. | Yes |
PENUP | PENUP or PU | Lifts the pen to stop drawing. | Yes |
PENDOWN | PENDOWN or PD | Lowers the pen to start drawing. | Yes |
CLEARSCREEN | CLEARSCREEN or CS | Clears the screen and resets the turtle. | Yes |
HOME | HOME | Returns the turtle to the center of the screen. | Yes |
REPEAT | REPEAT n [commands] | Repeats a block of commands n times. | Yes |
SETXY | SETXY x y | Moves the turtle to coordinates (x, y). | Yes |
SETHEADING | SETHEADING angle | Sets turtle’s facing direction. | No |
STOP | STOP | Stops execution of current procedure. | No |
- Git clone the repo
- Run the following command to install dependencies
npm install- Generate the
LogoCore.jswith
npm run export- Copy
dist/LogoCore.jstoeditor/(this will replace the existing one present there) - Open
editor/index.htmlin browser