https://github.com/inexorabletash/jslogo
Logo in JavaScript
https://github.com/inexorabletash/jslogo
logo programming-language
Last synced: about 1 month ago
JSON representation
Logo in JavaScript
- Host: GitHub
- URL: https://github.com/inexorabletash/jslogo
- Owner: inexorabletash
- License: other
- Created: 2013-04-29T02:37:17.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T15:11:31.000Z (over 1 year ago)
- Last Synced: 2025-03-29T13:11:41.186Z (about 2 months ago)
- Topics: logo, programming-language
- Language: JavaScript
- Homepage: https://calormen.com/jslogo
- Size: 965 KB
- Stars: 373
- Watchers: 20
- Forks: 151
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- starred-awesome - jslogo - Logo in JavaScript (JavaScript)
README
jslogo - Logo in JavaScript
===========================This is hosted at https://inexorabletash.github.io/jslogo/ for playing with live.
[Language Reference](https://htmlpreview.github.io/?https://github.com/inexorabletash/jslogo/blob/master/language.html) -
this attempts to implement a subset of [UCBLogo](https://www.cs.berkeley.edu/~bh/v2ch14/manual.html)
defined in in *Brian Harvey's Computer Science Logo Style*Logo Examples
-------------
to star repeat 5 [ fd 100 rt 144 ] end
star
to square :length repeat 4 [ fd :length rt 90 ] end
repeat 36 [ square 50 rt 10 ]
to randomcolor setcolor pick [ red orange yellow green blue violet ] end
repeat 36 [ randomcolor square random 200 rt 10 ]
window pu repeat 72 [ setlabelheight repcount fd repcount * 2.5 label "Logo bk repcount * 2.5 rt 10 ]Logo Links
----------
* [Logo](https://en.wikipedia.org/wiki/Logo_%28programming_language%29) on Wikipedia
* Other Logo implementations that run in a Web browser:
* [papert - logo in your browser](http://logo.twentygototen.org/) ([source code](https://code.google.com/p/papert/))
* [Curly Logo](https://github.com/drj11/curlylogo)
* [The Logo Foundation](http://el.media.mit.edu/logo-foundation/)
* [Berkeley Logo (UCBLogo)](https://www.cs.berkeley.edu/~bh/logo.html)
* [The Logo Tree Project](http://elica.net/download/papers/LogoTreeProject.pdf)
* [Ian Bicking on Logo](http://blog.ianbicking.org/2007/10/19/logo/)
* [PyLogo](http://pylogo.sourceforge.net/)
* [Introduction to Computer Programming](http://www.bfoit.org/itp/itp.html)To Do
-----
* Document deviations from UCB Logo standard
* Make these examples all work: [Logo 15-word challenge](http://www.mathcats.com/gallery/15wordcontest.html)
* Tail-call optimization
* Make execution async so you can watch the turtle move