Turtle Art: Difference between revisions
(recursion == pain) |
(show recursive routine, infer more block types and colors) |
||
Line 22: | Line 22: | ||
[[Turtle Art]] is an activity with a Logo-inspired graphical "turtle" that draws colorful art based on [[Scratch]]-like snap-together visual programming elements. |
[[Turtle Art]] is an activity with a Logo-inspired graphical "turtle" that draws colorful art based on [[Scratch]]-like snap-together visual programming elements. |
||
Although it has a turtle, supports neither procedures nor recursion, so it should not be seen as a Logo replacement. |
|||
There are five palettes of program elements available for program construction. Conditions for the If block are a different shape than numeric parameters used by the other blocks. |
There are five palettes of program elements available for program construction. Conditions for the If block are a different shape than numeric parameters used by the other blocks. |
||
*Turtle (green) |
|||
*Blocks |
|||
**Clear |
**Clear |
||
**Forward(n) |
**Forward(n) |
||
Line 35: | Line 33: | ||
**SetXY(x,y) |
**SetXY(x,y) |
||
**SetH(heading) |
**SetH(heading) |
||
**Turtle state values (can plug into a parameter) |
|||
⚫ | |||
***X, Y, heading |
|||
*Pen (cyan) |
|||
⚫ | |||
** Pen Down |
|||
** Set Pen Size(n) |
|||
** Set Color(n) |
|||
** Set Shade(n) |
|||
** ? (no screenshot) |
** ? (no screenshot) |
||
*Numbers |
*Numbers (violet) |
||
**Values (can plug into a parameter) |
|||
***Constant |
|||
***Infix operators(left,right) |
|||
**** +, -, *, / |
|||
***Random(min, max) (?) |
|||
**Conditions (oval, plugs into an If block) |
|||
*** Binary(a,b): =, < |
|||
*** Unary? (no screenshot) |
|||
** ? (no screenshot) |
** ? (no screenshot) |
||
*Flow |
*Flow (orange) |
||
**Wait(n) |
**Wait(n) |
||
**Forever[stack] (no continuation) |
**Forever[stack] (no continuation) |
||
Line 49: | Line 62: | ||
***jog right |
***jog right |
||
***jog down |
***jog down |
||
*My blocks |
*My blocks (yellow) |
||
**Named stack - a rhombus which tops a stack, equivalent to a procedure definition (but without parameters). |
|||
**"Name" - blocks for invoking a named stack (no parameters) |
|||
**Store "box"(n) - blocks for setting a variable |
|||
**Named box (plugs into a parameter) |
|||
** ? (no screenshot) |
** ? (no screenshot) |
||
Line 62: | Line 79: | ||
Image:Turtle6.png|Example projects are found on the Projects menu on the upper right of the screen |
Image:Turtle6.png|Example projects are found on the Projects menu on the upper right of the screen |
||
Image:542-turtleart-2.png |
Image:542-turtleart-2.png |
||
Image:Turtle-recursion-1.jpg| |
Image:Turtle-recursion-1.jpg|A recursive algorithm (difficult without parameters) |
||
{{stub}} |
{{stub}} |
||
Revision as of 21:56, 14 November 2007
see more templates or propose new |
Turtle Art is an activity with a Logo-inspired graphical "turtle" that draws colorful art based on Scratch-like snap-together visual programming elements.
There are five palettes of program elements available for program construction. Conditions for the If block are a different shape than numeric parameters used by the other blocks.
- Turtle (green)
- Clear
- Forward(n)
- Back(n)
- Left(angle)
- Right(angle)
- Arc(angle,radius)
- SetXY(x,y)
- SetH(heading)
- Turtle state values (can plug into a parameter)
- X, Y, heading
- Pen (cyan)
- Pen Up
- Pen Down
- Set Pen Size(n)
- Set Color(n)
- Set Shade(n)
- ? (no screenshot)
- Numbers (violet)
- Values (can plug into a parameter)
- Constant
- Infix operators(left,right)
- +, -, *, /
- Random(min, max) (?)
- Conditions (oval, plugs into an If block)
- Binary(a,b): =, <
- Unary? (no screenshot)
- ? (no screenshot)
- Values (can plug into a parameter)
- Flow (orange)
- Wait(n)
- Forever[stack] (no continuation)
- Repeat(n)[stack]
- If(condition)[then]
- If(condition)[then][else]
- Stop (no continuation)
- Connectors:
- jog right
- jog down
- My blocks (yellow)
- Named stack - a rhombus which tops a stack, equivalent to a procedure definition (but without parameters).
- "Name" - blocks for invoking a named stack (no parameters)
- Store "box"(n) - blocks for setting a variable
- Named box (plugs into a parameter)
- ? (no screenshot)
<gallery>
Image:Turtle0.png|Turtle Art startup screen
Image:Turtle1.png|Clicking on the Blocks menu brings the basic tool set into view
Image:Turtle2.png|Drag blocks from the menu
Image:Turtle3.png|Click on the top block of a stack to execute the stack
Image:Turtle4.png|Other blocks can be found under the tabs
Image:Turtle5.png|
Image:Turtle6.png|Example projects are found on the Projects menu on the upper right of the screen
Image:542-turtleart-2.png
Image:Turtle-recursion-1.jpg|A recursive algorithm (difficult without parameters)