|
寅の絵をロゴで書きます。(このロゴ言語はOMeta上につくられています) (現在IEでは動きません)
It draws a picture of tiger by LOGO. (This LOGO language is build on OMeta) (It does not work on IE now)
|
Play Area
|
Transcript
「Source」のテキストを編集して「do it (ctrl+d)」ボタンを押すと、自分の好きな絵を描けます。
その上、「Meta Source」のテキストを編集して「update Meta」ボタンを押すと、自分だけのロゴ言語をつくれます。
You can draw own picture by edit the 'Source' text then press 'do it (ctrl+d)' button.
More over, you can make own LOGO language by edit the 'Meta Source' text then press 'update Meta' button.
|
Commands of LOGO
n歩前へ進む forward n n歩後ろへ進む backward n 右へn°回る turn right n degrees 左へn°回る turn left n degrees |
'name'という名前で引数':arg'を使って'commands'にある命令を実行する命令を作る。 make a new command named 'name' executing 'commands' with argument ':arg' 'exp'が正しければ、カッコのなかの命令を行う。 if 'exp' is true then execute commands in the bracket カッコの中の命令をn回繰り返す。 repeat n times do commands in the bracket |
位置のx座標をnにする。 set position x to n 位置のy座標をnにする。 set position y to n 向きをn°にする。 set angle to n degrees ホームポジションへ戻る。 go to the home position 絵をすべて消す。 clear canvas |
references
To learn more about OMeta, click here.