## Introduction to Logo Turtle [LogoTurtle](https://helloacm.com/turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen/) is currently the FIRST and only one Chrome Extension for Turtle Graphics. I have also written [a PHP version of Logo Interpreter](https://steakovercooked.com/Software.Logo) in 2006 but that runs only on the server. ## Previous Contributions - v0.0.5: [Turtle Programming v0.0.5: Adding IF/ELSE and STOP!](https://helloacm.com/turtle-programming-v0-0-5-adding-if-else-and-stop/) - v0.0.4: [LogoTurtle: Make Variables and Comments](https://helloacm.com/logoturtle-make-variables-and-comments/) - v0.0.3: [Turtle Graphics Programming Update: Adding text, jump, dot, fontsize, download as png](https://helloacm.com/turtle-graphics-programming-update-adding-text-jump-dot-fontsize-download-as-png/) - v0.0.2: [LogoTurtle v0.0.2: ShowTurtle, HideTurtle, Color, Width and Help](https://helloacm.com/logoturtle-v0-0-2-showturtle-hideturtle-color-width-and-help/). - Teach Your Kids Programming - The First Logo Interpreter (Turtle Graphics) in Chrome Extension! [v0.0.1](https://helloacm.com/teach-your-kids-programming-the-first-logo-interpreter-turtle-graphics-in-chrome-extension/) ## v0.0.6 New Features [**This Commit**](https://github.com/DoctorLai/LogoTurtle/commit/671cd38250ead4d4505e7d31f8bfc6d057685112#diff-f522b2d4d6d98e52b7c846f7dcf397d7) has the following changes: 1. Add MoveTo function 2. Add Circle function 3. Add Turning (absolute degree) 4. Set Screen Color 5. Enhanced Error/Warning handling ## Screenshots Let's put all the above in one LOGO source code to demonstrate: ``` ht cs screen green color yellow ; test comment pu moveto -200 20 pd turn 270 repeat 8 [circle 50 fd 10 rt 45] ```  # Parse Source Code with 2 Parameters The `MoveTo` takes two parameters that moves the turtle to a given coordinate, which is handled by the following javascript. ``` case "moveto": expr = this.evalVars(word_next); try { word_next = eval(expr); } catch (e) { this.pushErr(word, LOGO_ERR_EVAL, expr); return false; } if ((word_next == '') || (!isNumeric(word_next))) { this.pushErr(word, LOGO_ERR_MISSING_NUMBERS, word_next); return false; } second_word = getNextWord(s, y.next, U); second_word_word = second_word.word; expr = this.evalVars(second_word_word); try { second_word_word = eval(expr); } catch (e) { this.pushErr(word, LOGO_ERR_EVAL, expr); return false; } if ((second_word_word == '') || (!isNumeric(second_word_word))) { this.pushErr(word, LOGO_ERR_MISSING_NUMBERS, second_word_word); return false; } this.logo.moveTo(word_next, second_word_word); i = second_word.next; break; ``` ## Roadmap of Chrome Extension: Logo Turtle 1. Add Functions 2. Add IF/THEN/ELSE 3. Add Variables 4. Add Colors 5. Add MoveTo 6. Add PrintText 7. Add Circle 8. Add Arc 9. Add Eraser 10. Add Fill 11. Save As Picture 12. Save As Program 13. Comments 14. Add Recursion Support 15. Add Global/Local Scopes 16. etc. etc. ## Technology Stack If an App can be written in [Javascript](https://helloacm.com/steemit-javascript-function-to-get-original-post-from-comments-permlink/), eventually it will be written in Javascript. # Chrome Webstore Install the [Turtle Programming for Kids](https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp) Now! # Contribution Welcome Github: https://github.com/DoctorLai/LogoTurtle 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request. <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | justyy | ||||||
---|---|---|---|---|---|---|---|
permlink | turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen | ||||||
category | utopian-io | ||||||
json_metadata | {"community":"utopian","app":"steemit/0.1","format":"markdown","repository":{"id":121791502,"name":"LogoTurtle","full_name":"DoctorLai/LogoTurtle","html_url":"https://github.com/DoctorLai/LogoTurtle","fork":false,"owner":{"login":"DoctorLai"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","steemstem","programming","steemdev","cn-programming"],"links":["https://helloacm.com/turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen/","https://steakovercooked.com/Software.Logo","https://helloacm.com/turtle-programming-v0-0-5-adding-if-else-and-stop/","https://helloacm.com/logoturtle-make-variables-and-comments/","https://helloacm.com/turtle-graphics-programming-update-adding-text-jump-dot-fontsize-download-as-png/","https://helloacm.com/logoturtle-v0-0-2-showturtle-hideturtle-color-width-and-help/","https://helloacm.com/teach-your-kids-programming-the-first-logo-interpreter-turtle-graphics-in-chrome-extension/","https://github.com/DoctorLai/LogoTurtle/commit/671cd38250ead4d4505e7d31f8bfc6d057685112#diff-f522b2d4d6d98e52b7c846f7dcf397d7","https://helloacm.com/steemit-javascript-function-to-get-original-post-from-comments-permlink/","https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp","https://github.com/DoctorLai/LogoTurtle","https://utopian.io/utopian-io/@justyy/turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1519980224/pcyrarrooe7rmtchgc5h.png"],"moderator":{"account":"ms10398","time":"2018-03-02T12:27:59.388Z","reviewed":true,"pending":false,"flagged":false},"questions":[],"score":0} | ||||||
created | 2018-03-02 08:46:54 | ||||||
last_update | 2018-03-02 16:46:33 | ||||||
depth | 0 | ||||||
children | 5 | ||||||
last_payout | 2018-03-09 08:46:54 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 55.370 HBD | ||||||
curator_payout_value | 21.994 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 3,952 | ||||||
author_reputation | 280,616,224,641,976 | ||||||
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 41,586,965 | ||||||
net_rshares | 19,489,649,023,922 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mrs.agsexplorer | 0 | 8,597,589,826 | 2% | ||
justtryme90 | 0 | 56,759,468,657 | 2% | ||
grandpere | 0 | 8,765,943,298 | 5% | ||
ace108 | 0 | 199,376,789,547 | 18% | ||
magicmonk | 0 | 97,784,731,730 | 50% | ||
timsaid | 0 | 5,145,055,044 | 1% | ||
rivalhw | 0 | 74,234,284,110 | 5% | ||
helene | 0 | 56,243,441,041 | 10% | ||
lemouth | 0 | 16,294,655,214 | 3.5% | ||
rjbauer85 | 0 | 162,827,688 | 5% | ||
anarchyhasnogods | 0 | 8,107,165,817 | 2.5% | ||
lamouthe | 0 | 1,258,319,356 | 5% | ||
justyy | 0 | 638,339,320,141 | 80% | ||
luneknight | 0 | 676,694,740 | 100% | ||
steemstem | 0 | 133,133,765,242 | 5% | ||
dapeng | 0 | 2,482,183,785 | 2% | ||
happyukgo | 0 | 1,546,029,227 | 80% | ||
foundation | 0 | 485,502,301 | 5% | ||
the-devil | 0 | 796,401,106 | 5% | ||
nokeh | 0 | 237,893,284 | 100% | ||
jamhuery | 0 | 997,462,954 | 5% | ||
sv67216721 | 0 | 421,975,369 | 5% | ||
mobbs | 0 | 9,943,611,041 | 4.25% | ||
frankintaiwan | 0 | 80,958,102 | 20% | ||
kryzsec | 0 | 1,642,530,742 | 5% | ||
jassennessaj | 0 | 16,464,057,529 | 10% | ||
fredrikaa | 0 | 8,782,846,492 | 2.5% | ||
mkt | 0 | 54,012,343,078 | 100% | ||
helo | 0 | 989,567,964 | 10% | ||
dber | 0 | 2,040,053,252 | 5% | ||
shenchensucc | 0 | 2,949,745,081 | 20% | ||
kerriknox | 0 | 22,109,655,970 | 5% | ||
alexander.alexis | 0 | 275,163,623 | 1% | ||
blessing97 | 0 | 168,591,040 | 5% | ||
marram | 0 | 131,624,511 | 10% | ||
victorialuxx | 0 | 161,168,935 | 100% | ||
ertwro | 0 | 2,079,197,422 | 5% | ||
susanli3769 | 0 | 192,580,149,194 | 100% | ||
nitesh9 | 0 | 1,246,256,757 | 5% | ||
churchboy | 0 | 610,950,467 | 5% | ||
himal | 0 | 331,658,875 | 5% | ||
mikefrancis | 0 | 291,941,365 | 50% | ||
abigail-dantes | 0 | 75,048,630,368 | 5% | ||
leczy | 0 | 512,425,957 | 5% | ||
robinlee | 0 | 400,275,855 | 100% | ||
catwomanteresa | 0 | 54,190,956,232 | 50% | ||
rainyapril | 0 | 505,672,659 | 100% | ||
al2ping | 0 | 102,411,140 | 100% | ||
mountainwashere | 0 | 1,471,520,345 | 5% | ||
liangfengyouren | 0 | 1,119,367,233 | 50% | ||
horpey | 0 | 329,579,088 | 5% | ||
shengjian | 0 | 18,286,274,423 | 100% | ||
kangnajiang | 0 | 286,984,024 | 100% | ||
cifer | 0 | 3,683,143,989 | 80% | ||
geass | 0 | 519,930,503 | 100% | ||
moonvoid | 0 | 614,503,785 | 100% | ||
ryal | 0 | 603,935,717 | 100% | ||
boontjie | 0 | 16,909,392,384 | 100% | ||
irenett | 0 | 682,360,862 | 100% | ||
rosatravels | 0 | 62,262,343,133 | 50% | ||
ksolymosi | 0 | 676,758,833 | 5% | ||
xuran | 0 | 5,075,463,584 | 100% | ||
awiwea1974 | 0 | 399,601,806 | 100% | ||
superbing | 0 | 7,446,870,404 | 80% | ||
dailyfortune | 0 | 5,438,139,080 | 80% | ||
steemitowner | 0 | 1,302,106,357 | 100% | ||
dailystats | 0 | 11,166,716,377 | 80% | ||
wangwenjing | 0 | 23,799,725,672 | 60% | ||
xuzhen | 0 | 8,909,419,880 | 60% | ||
ayman101 | 0 | 574,119,303 | 100% | ||
steemline | 0 | 199,291,001 | 100% | ||
carloserp-2000 | 0 | 807,946,440 | 5% | ||
pangoli | 0 | 291,939,823 | 5% | ||
rachelsmantra | 0 | 214,559,082 | 5% | ||
winniex | 0 | 2,335,334,161 | 10% | ||
ivysrono | 0 | 1,589,679,899 | 100% | ||
altherion | 0 | 2,056,661,054 | 5% | ||
gra | 0 | 1,875,349,393 | 5% | ||
jianan | 0 | 506,013,629 | 100% | ||
utopian-io | 0 | 17,384,853,805,300 | 11.08% | ||
kedi | 0 | 511,275,655 | 1.5% | ||
nada101 | 0 | 595,050,924 | 100% | ||
omstavan | 0 | 2,716,819,168 | 100% | ||
nileelily | 0 | 4,461,786,233 | 100% | ||
chann | 0 | 4,141,675,638 | 10% | ||
daxiang | 0 | 245,244,913 | 100% | ||
anxin | 0 | 500,360,172 | 100% | ||
cnsteem | 0 | 57,183,742,960 | 100% | ||
lebin | 0 | 30,988,169,967 | 50% | ||
coindzs | 0 | 153,331,699 | 100% | ||
kenadis | 0 | 1,351,675,536 | 5% | ||
amavi | 0 | 758,446,592 | 1% | ||
robotics101 | 0 | 137,006,091 | 4.25% | ||
gentleshaid | 0 | 745,113,142 | 5% | ||
cryptonewsly | 0 | 198,479,810 | 100% | ||
arcjen02 | 0 | 3,292,016,989 | 100% | ||
dysfunctional | 0 | 383,808,213 | 2.5% | ||
blockd | 0 | 509,615,568 | 100% | ||
moobear | 0 | 1,419,231,087 | 100% | ||
hadji | 0 | 235,386,574 | 5% | ||
steemstem-bot | 0 | 2,249,001,353 | 15% | ||
madokami | 0 | 94,675,904 | 100% | ||
prch | 0 | 1,877,649,935 | 100% | ||
nean | 0 | 505,967,780 | 100% | ||
foodielifestyle | 0 | 2,183,098,524 | 100% | ||
woolfe19861008 | 0 | 911,169,488 | 100% | ||
deutsch-boost | 0 | 367,980,211 | 20% | ||
dailychina | 0 | 7,718,353,669 | 80% | ||
arabel | 0 | 504,537,891 | 60% | ||
rayday | 0 | 582,925,241 | 98% | ||
pars11 | 0 | 3,276,533,261 | 100% | ||
vincenthan | 0 | 513,594,395 | 100% | ||
yuxuan | 0 | 87,889,376 | 100% | ||
dongfengman | 0 | 5,254,820,357 | 100% | ||
historylover | 0 | 548,606,796 | 100% | ||
serenazz | 0 | 798,634,382 | 100% | ||
cha0s0000 | 0 | 3,554,338,175 | 100% | ||
yedda | 0 | 503,358,995 | 100% | ||
saleh.romanisti | 0 | 227,965,751 | 100% | ||
shentrading | 0 | 499,508,955 | 100% | ||
zasilla | 0 | 508,971,280 | 100% | ||
fishaa | 0 | 325,921,687 | 100% | ||
aaronstar | 0 | 120,926,418 | 100% | ||
ayanamoon | 0 | 112,246,034 | 100% | ||
ethanlee | 0 | 8,789,760,994 | 100% | ||
twinsnicole | 0 | 508,961,712 | 100% | ||
deepthinking | 0 | 502,222,103 | 100% | ||
gogoabc | 0 | 359,856,194 | 100% | ||
fishbb | 0 | 136,385,650 | 100% | ||
judicar | 0 | 434,930,803 | 100% | ||
fanso | 0 | 907,189,442 | 100% | ||
riverside14 | 0 | 602,173,424 | 100% | ||
lilypang22 | 0 | 1,866,949,391 | 100% | ||
jeffan | 0 | 52,980,481 | 100% | ||
de-stem | 0 | 677,992,398 | 2.5% | ||
fishcc | 0 | 225,729,932 | 100% | ||
tinna | 0 | 223,987,808 | 100% | ||
amyli | 0 | 90,399,070 | 100% | ||
zens | 0 | 453,078,608 | 100% | ||
steamsteem | 0 | 1,839,414,207 | 1% | ||
ashi0 | 0 | 511,761,774 | 100% | ||
steemitvip | 0 | 478,381,093 | 100% | ||
lakemountain | 0 | 303,802,035 | 100% | ||
tadhabn | 0 | 530,428,049 | 100% | ||
regals | 0 | 506,946,273 | 100% |
Thank you for the contribution. It has been approved. You can contact us on [Discord](https://discord.gg/uTyJkNm). **[[utopian-moderator]](https://utopian.io/moderators)**
author | ms10398 |
---|---|
permlink | re-justyy-turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen-20180302t122809484z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-02 12:28:09 |
last_update | 2018-03-02 12:28:09 |
depth | 1 |
children | 0 |
last_payout | 2018-03-09 12:28:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 173 |
author_reputation | 27,572,487,973,390 |
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,625,065 |
net_rshares | 0 |
<center><a href="www.steemit.com/@steemstem"><img src="https://media.discordapp.net/attachments/384404201544876032/405507994583957505/steemSTEM.png"></a><br><table><tr><th> </th><th> </th><th><a href="https://steemit.com/steemstem/@steemstem/helpful-guidelines-for-crafting-steemstem-content">Guidelines</a></th><th><a href="https://steemit.com/steemstem/@steemstem/steemstem-winter-2017-2018-project-update">Project Update</a></th><th> </th><th> </th></tr></table><br><a href="https://steemit.com/steemstem/@steemstem/being-a-member-of-the-steemstem-community"><b>Being A SteemStem Member</b></a></center>
author | steemstem-bot |
---|---|
permlink | re-turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen-20180302t194325 |
category | utopian-io |
json_metadata | "" |
created | 2018-03-02 19:43:27 |
last_update | 2018-03-02 19:43:27 |
depth | 1 |
children | 0 |
last_payout | 2018-03-09 19:43:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.642 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 606 |
author_reputation | 3,811,533,615,496 |
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,707,496 |
net_rshares | 141,898,671,643 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
justtryme90 | 0 | 141,898,671,643 | 5% |
@justyy 想问一下,什么情况可以用#cn-programming ?
author | superoo7 |
---|---|
permlink | re-justyy-turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen-20180302t222541428z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["justyy"],"app":"steemit/0.1"} |
created | 2018-03-02 22:25:42 |
last_update | 2018-03-02 22:25:54 |
depth | 1 |
children | 1 |
last_payout | 2018-03-09 22:25:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 37 |
author_reputation | 27,763,618,634,121 |
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,735,218 |
net_rshares | 0 |
想让中国人看的编程文章?
author | justyy |
---|---|
permlink | re-superoo7-re-justyy-turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen-20180303t014055959z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-03-03 01:40:57 |
last_update | 2018-03-03 01:40:57 |
depth | 2 |
children | 0 |
last_payout | 2018-03-10 01:40:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 12 |
author_reputation | 280,616,224,641,976 |
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,765,606 |
net_rshares | 0 |
### Hey @justyy I am @utopian-io. I have just upvoted you! #### Achievements - WOW WOW WOW People loved what you did here. GREAT JOB! - Seems like you contribute quite often. AMAZING! #### Community-Driven Witness! I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER! - <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a> - <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a> - Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a> [](https://steemit.com/~witnesses) **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
author | utopian-io |
---|---|
permlink | re-justyy-turtle-programming-v0-0-6-adding-circle-moveto-turn-and-screen-20180303t072624353z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-03 07:26:24 |
last_update | 2018-03-03 07:26:24 |
depth | 1 |
children | 0 |
last_payout | 2018-03-10 07:26:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,061 |
author_reputation | 152,955,367,999,756 |
root_title | "Turtle Programming v0.0.6: Adding Circle, MoveTo, Turn and Screen!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,821,313 |
net_rshares | 0 |