Skip to content

Interpreter to interpret Logo commands and draw canvas

Notifications You must be signed in to change notification settings

aryansi225/Logo-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo-Interpreter

Interpreter to interpret Logo commands and draw canvas

An interpreter is made using p5.js in which the commands of logo language is parsed and executed by drawing on the canvas. The language logo was designed in 1967 for educational purposes, where a turtle moves on canvas based on the commands. Here in the interpreter only a subset of basic logo commands are dealt with. The commands which are implemented are :

  1. Movement commands like forward, backward, left and right.
  2. Pen Up and Pen Down Command
  3. Repeat Command
  4. Clear Screen Command
  5. Pen and Screen Color Command (Here color is decided based on rgb color values)

To learn more about Logo visit: https://en.wikipedia.org/wiki/Logo_(programming_language)

Screenshots

image

Dependencies

HTML, JavaScript, P5.JS

References

https://www.youtube.com/watch?v=i-k04yzfMpw&t

My Original Contribution & Learnings

Contribution => Reimplemented features - forward, backward, left, right, pen up, pen down, repeat after watching the video as mentioned in the reference link. Implemented features - clear screen, pen color and screen color command as a continuation to the work.

Major Learnings => Learnt how to use p5.JS to interpret an input and draw based on that.

About

Interpreter to interpret Logo commands and draw canvas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published