Reference Guide - Playful Invention · TurtleArt Reference Guide Playful Invention Company...
Transcript of Reference Guide - Playful Invention · TurtleArt Reference Guide Playful Invention Company...
2016 © Playful Invention Company
Reference Guide
TutleArt Interface
Editor
Run the main stack
Stop button
Save the current project and exit to the Home page
Save and exit
Hide the blocks
Tap anywhere on the black border toshow the blocks
Open the Options Menu
Tap the stack to run
Show the tools
Tap anywhere onthe canvas to run the program again
Close without saving
Tap to select a category ofprogramming blocks:
- Turtle - Pen- Math- Flow- My Blocks
TurtleArt Reference Guide Playful Invention Company
set color
0
set shade
50
repeat 4
forward 100
right 90
TutleArt Interface
The backpack is a place where you may temporarily store stacks.
It allows you to copy and paste stacks from one project to another.
Tap to clean the screen and return the turtle to the center.
Tap to select the tool, then tap on a stack to delete it.
Tap to select the tool, then tap on a stack to get a copy.
Save a copy of the current project.
Open or close the Backpack.
Zoom out to see the entire programming canvas.
Close the current project and exit to the Home page.
Backpack
Drag and drop stacks here, to store them temporarily
Drag them out to get a copy
Tools
Undo.
Redo.
Options Menu
TurtleArt Reference Guide Playful Invention Company
TutleArt Interface
Home Page
Gallery name
Open the Gallery Panel
Tap a thumbnail to open a project.
Touch and hold a thumbnail to copy to the clipboard, take a snapshot, or delete the project.
Tap the empty thumbnail to start a
new project
Touch and hold the empty thumbnail to paste the contents
of the clipboard.
Tap to edit the name
Gallery Panel
Gallery name Tap to close
Add a gallery
Tap to see this gallery’s thumbnails
Tap on a thumbnail to move the project to the current gallery
Tap to switch galleries
TurtleArt Reference Guide Playful Invention Company
TutleArt Tips and Tricks
Find out what a block does
Colors and Shades
Color
Shade
Touch and hold a block to see what it does.
The color numbers in TurtleArt are between 0 and 100. The shade numbers are between 0 and 100.
The default color is 0 and the default shade is 50.Black color is -9999 and shade 0.White is color -9999 and shade 100.
0
0
10
10
20
20
30
30
40
40
50
50
60
60
70
70
80
80
90
90
100
100
clean
forward 100
forward
forward 100
number of steps
moves the turlte 100 steps forward
TurtleArt Reference Guide Playful Invention Company
TutleArt Tips and Tricks
Two Handed Gestures
In order to keep a palette open, use your left hand to hold on the palette and your right to drag blocks.
TurtleArt Reference Guide Playful Invention Company
clean
forward back
right left
setheading
arc
setxy
x
y
heading
yxy
arc
Tap on , then touch and hold on .
With the other hand, tap on all the stacks you want to delete.
When you are done deleting, release the scissors.
clean
forward 100
Tap on , then select .
Hold and drag the stack you want to copy.
clean
forward 100
cleancleanlclea
rd
ean
ar
eannan
100010000000011100110dd
clean
forward 100
TutleArt Tips and Tricks
Coordinate System
TurtleArt Reference Guide Playful Invention Company
TurtleArt works with a coordinate system. The Turtle’s de-fault position is (0, 0), which is the middle of the TurtleArt canvas.
-60-60
100100
Y
Move and turn the turtle
Move the turtle by dragging it by its shell.
Turn the turtle by dragging it by its nose.
TutleArt Tips and Tricks
Defining Procedures
Place a hat on top of a stack. Tap to give it a name.
A block with that name will appear on the yellow blocks palette. Use that block alone or in other stacks.
TurtleArt Reference Guide Playful Invention Company
penup
forward 6
pendown
forward 6
dash
penup
forward 6
pendown
forward 6
repeat 10
dash
Local Boxes
To add an input, drag a box block (box 1, 2, or 3) and drop it on a named hat.
Change the input to temporarily change the value of the box.
Hats can have a maximum of 2 inputs.
dash
pen up
forward 6
pendown
forward 6
box1
dash
penup
forward
pendown
forward 6
6
box1
dash
box1
penup
forward box1
pendown
forward box1
repeat 10
dash 10
input
TutleArt Tips and Tricks
Save to Camera Roll
Touch and hold on the thumbnail and choose
The TurtleArt image will then be copied to your camera roll.
TurtleArt Reference Guide Playful Invention Company
Magritte Bird
TutleArt Blocks
Turtle
TurtleArt Reference Guide Playful Invention Company
clean
Clear the screen and reposition the turtle to the center.clean
left
Turn the turtle left.left
right
Turn the turtle right.right
back
Move the turtle backward.back
forward
Move the turtle forward.forward
set heading
Set the heading of the turtle.
set heading
heading The heading of the turtle.
heading
arc
Draw an arc.
arcangle
radius
Set the position of the turtle.
setxyx
y
setxy
y coordinate
The y (vertical) coordinate of the turtle.
y
The x (horizontal) coordinate of the turtle.
x
x coordinate
TutleArt Blocks
Pen
TurtleArt Reference Guide Playful Invention Company
pensize
The width of the turtle’s pen.
set pen size
Set the width of the turtle’s pen.
Fill the screen with a color and a shade.
fill screen
pen up
Raise the turtle’s pen so that it will not draw. pen
up
pensize
fill screen
color
shade
end fill
set shade
color
The color of the turtle’s pen.
set color
Set the color of the turtle’s pen. color set color
set pensize
pen down
pen down
Lower the turtle’s pen so that it will draw.
shade
shade
The shade of the turtle’s pen.
set shade
Set the shade of the turtle’s pen. set
shade
start fill
start fill
Mark the start of an area to be filled.
end fill
Mark the end of the area and fill it.
TutleArt Blocks
Numbers
TurtleArt Reference Guide Playful Invention Company
Arithmetic in TurtleArt proceeds from left to right. 1+2*3 is read as (1+2)*3 not 1+(2*3).
>
subtract
Subtract one number from another.
add
Add two numbers.
number
set shade
A number to be used as an input.
+
0
random
Generate a random number between the two specified values.
one of
Choose one of two numbers.one ofrandom
divide
Divide one number by another.
multiply
Multiply two numbers.
modulo
Calculate the remainder when dividing two numbers.
/X
%
-
less
Test if one number is less than another.
greater
Test if one number is greater than another.
equal
Test if two numbers are equal.
<
=
TutleArt Blocks
TurtleArt Reference Guide Playful Invention Company
)(
close bracket
Close the parenthesis.
open bracket
Open a parenthesis. set
shade
Print a number.
Flow
wait
Wait for some time (in tenths of seconds).
forever
Run some blocks over and over.wait forever
stop
Stop the stack that is running.
horizontal spacer
A spacer for layout purposes.
vertical spacer
A spacer for layout purposes.
stop
if
Conditionally run some blocks.
repeat
Repeat some blocks a specified number of times.
set shade
ifrepeat
TutleArt Blocks
My Blocks
TurtleArt Reference Guide Playful Invention Company
hat
Name a stack to create your own block.
store in box
Store a number in a box.
set shade
box
The current value of a box.box1 store in box1