Skip to content

syswraith/logo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

An online Logo interpreter written in TypeScript and HTML5 Canvas

Reference

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

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published