Activities/Turtle Art: Difference between revisions
| Line 115: | Line 115: | ||
You add blocks to your program by clicking on or dragging them from the palette to the main area. You can delete a block by dragging it back onto the palette. Click anywhere on a "stack" of blocks to start executing that stack or by clicking in the Rabbit (fast) or Turtle (slow) buttons on the Project Toolbar. | You add blocks to your program by clicking on or dragging them from the palette to the main area. You can delete a block by dragging it back onto the palette. Click anywhere on a "stack" of blocks to start executing that stack or by clicking in the Rabbit (fast) or Turtle (slow) buttons on the Project Toolbar. | ||
===Video Tutorials=== | ===Video Tutorials=== | ||
| Line 151: | Line 141: | ||
[[Image:TAproject.png]] | [[Image:TAproject.png]] | ||
Project title; [[#Sharing| | From left to right: | ||
* Project title; | |||
* [[#Sharing|Share]] button; | |||
* Keep button; | |||
* Save copy to Journal button; save to HTML; | |||
* [[#Exporting to Berkeley Logo|Save to Logo]]; | |||
* Save as an image; | |||
* Import [[#Programmable Brick|Python code]]; | |||
* Import Turtle Art project | |||
===Edit Toolbar=== | ===Edit Toolbar=== | ||
| Line 158: | Line 156: | ||
The Edit toolbar is used to copy stacks of blocks to the clipboard and to paste stacks from the clipboard. To copy a stack, place the cursor on any block in the stack and then type Ctrl-c. To paste a stack from the clipboard, type Ctrl-v. | The Edit toolbar is used to copy stacks of blocks to the clipboard and to paste stacks from the clipboard. To copy a stack, place the cursor on any block in the stack and then type Ctrl-c. To paste a stack from the clipboard, type Ctrl-v. | ||
From left to right: | |||
* Copy | |||
* Paste | |||
===View Toolbar=== | ===View Toolbar=== | ||
| Line 163: | Line 165: | ||
[[Image:TAview.png]] | [[Image:TAview.png]] | ||
Full-screen button; Cartesian-coordinate grid; polar-coordinate grid; display of x,y coordinates of turtle; | From left to right: | ||
* Full-screen button; | |||
* Cartesian-coordinate grid; | |||
* polar-coordinate grid; | |||
* display of x,y coordinates of turtle; | |||
* Rescale-coordinates button; | |||
* Grow block size; | |||
* Shrink block size | |||
===Help Toolbar=== | ===Help Toolbar=== | ||
| Line 169: | Line 178: | ||
[[Image:TAhelp.png]] | [[Image:TAhelp.png]] | ||
Import sample project; display help strings | From left to right: | ||
* Import sample project; | |||
* display help strings | |||
=== Palettes Toolbar === | === Palettes Toolbar === | ||
| Line 175: | Line 186: | ||
There are eight palettes of program elements available for program construction: [[Activities/Turtle_Art/Turtle|Turtle movements]]; [[Activities/Turtle_Art/Pen|Pen attributes]]; Color attributes; [[Activities/Turtle_Art/Numbers|Numeric operators]]; [[Activities/Turtle_Art/Sensors|Misc. functions]]; [[Activities/Turtle_Art/Flow|Logical operators]]; [[Activities/Turtle_Art/Blocks|Logical blocks]]; and [[Activities/Turtle_Art/Templates|Presentation blocks]] | There are eight palettes of program elements available for program construction: [[Activities/Turtle_Art/Turtle|Turtle movements]]; [[Activities/Turtle_Art/Pen|Pen attributes]]; Color attributes; [[Activities/Turtle_Art/Numbers|Numeric operators]]; [[Activities/Turtle_Art/Sensors|Misc. functions]]; [[Activities/Turtle_Art/Flow|Logical operators]]; [[Activities/Turtle_Art/Blocks|Logical blocks]]; and [[Activities/Turtle_Art/Templates|Presentation blocks]] | ||
Blocks are dragged from the palette onto the canvas surface. To dispose of a block, drag it back onto the palette. (It will be placed onto the trash palette.) | |||
Blocks are dragged from the palette onto the canvas surface. To dispose of a block, drag it back onto the palette. | |||
The palettes can be displayed horizontally or vertically (See below). Orientation is adjusted by clicking on the [[Image:TAorientation0.svg]] and [[Image:TAorientation1.svg]] buttons on the upper-left corner of the palette. The palette can be hidden by clicking on the [[Image:TAhide.svg]] button on the lower-right corner of the palette. The next palette in the menu can be accessed by clicking on the [[Image:TAnext.svg]] button on the upper-right corner of the palette. | The palettes can be displayed horizontally or vertically (See below). Orientation is adjusted by clicking on the [[Image:TAorientation0.svg]] and [[Image:TAorientation1.svg]] buttons on the upper-left corner of the palette. The palette can be hidden by clicking on the [[Image:TAhide.svg]] button on the lower-right corner of the palette. The next palette in the menu can be accessed by clicking on the [[Image:TAnext.svg]] button on the upper-right corner of the palette. | ||
| Line 186: | Line 195: | ||
These blocks are used to control the movements of the turtle. | These blocks are used to control the movements of the turtle. | ||
* clean: clear the screen and position the turtle in the center of the screen, pen down, color red, heading 0 | |||
* forward: move turtle forward | |||
* back: move turtle backward | |||
* show: draw text or display media object from the Journal | |||
* left: rotate turtle counterclockwise | |||
* right: rotate turtle clockwise | |||
* seth: set turtle heading | |||
* set xy: set turtle x,y position (0,0) is the center of the screen | |||
* heading: holds current heading value of the turtle (can be used in place of a number block) | |||
* xcor: holds current x-coordinate value of the turtle (can be used in place of a number block) | |||
* ycor: holds current y-coordinate value of the turtle (can be used in place of a number block) | |||
* set scale: sets the scale of images displayed with show block | |||
* left: holds current x-coordinate value of the left edge of the screen (can be used in place of a number block) | |||
* top: holds current y-coordinate value of the top edge of the screen (can be used in place of a number block) | |||
* right: holds current x-coordinate value of the right edge of the screen (can be used in place of a number block) | |||
* bottom: holds current y-coordinate value of the bottom edge of the screen (can be used in place of a number block) | |||
[[Image:TApen.png]] | [[Image:TApen.png]] | ||
| Line 235: | Line 262: | ||
--> | --> | ||
===tips=== | |||
Did you know that you can copy/paste stacks to/from the clipboard? You type Ctrl-C to copy whatever stack is under the cursor to the clipboard. Ctrl-V will paste from the clipboard onto whatever TA project you have open. Try pasting this code into your Turtle Art project. | |||
:[[0, "hat2", 880, 80, [null, 1]], [1, "forever", 892, 130, [0, 2, null]], [2, "kbinput", 973, 144, [1, 3]], [3, "if", 973, 198, [2, 4, 7, 8]], [4, "greater", 1053, 208, [3, 5, 6, null]], [5, "keyboard", 1085, 217, [4, null]], [6, ["number", "0"], 1234, 217, [4, null]], [7, "stopstack", 1068, 272, [3, null]], [8, "wait", 973, 313, [3, 9, null]], [9, ["number", "0.5"], 1047, 322, [8, null]]] | |||
You can also paste text from the clipboard into text blocks. | |||
[[Image:TAGnome.png|600px]] | |||
Turtle Art runs in Sugar and in the GNOME desktop. | |||
== New features == | == New features == | ||