Skip to content

Repository files navigation

logo

An online Logo interpreter written in TypeScript and HTML5 Canvas

Reference

CommandSyntaxFunctionImplementation Status
FORWARDFORWARD n or FD nMoves the turtle forward by n steps.Yes
BACKWARDBACKWARD n or BK nMoves the turtle backward by n steps.Yes
RIGHTRIGHT angle or RT angleTurns the turtle clockwise by angle degrees.Yes
LEFTLEFT angle or LT angleTurns the turtle counterclockwise by angle degrees.Yes
PENUPPENUP or PULifts the pen to stop drawing.Yes
PENDOWNPENDOWN or PDLowers the pen to start drawing.Yes
CLEARSCREENCLEARSCREEN or CSClears the screen and resets the turtle.Yes
HOMEHOMEReturns the turtle to the center of the screen.Yes
REPEATREPEAT n [commands]Repeats a block of commands n times.Yes
SETXYSETXY x yMoves the turtle to coordinates (x, y).Yes
SETHEADINGSETHEADING angleSets turtle’s facing direction.No
STOPSTOPStops execution of current procedure.No

Setup Instructions

  1. Git clone the repo
  2. Run the following command to install dependencies
npm install
  1. Generate the LogoCore.js with
npm run export
  1. Copy dist/LogoCore.js to editor/ (this will replace the existing one present there)
  2. Open editor/index.html in browser

About

An online Logo interpreter written in TypeScript and HTML5 Canvas

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages