Professional Documents
Culture Documents
repeat
6
forward right
100 60
ed t r ta g S n i t Get
repeat
6
forward 100
turn
right 60
BIGGER OR SMALLER
repeat
6
forward right
SQUARE
repeat
4
TRIANGLE
repeat
3 100 90
forward right
forward right
100 120
GETTING STARTED
repeat
forward right
100 38
90 x 4 = 360
Getting St arted
2
set color
repeat
7 360 1 1
forward right
of little steps
n
r tu
set color
360 x 1 = 360
forward right
repeat
180 1 2
forward right
forward right
DRAWING CIRCLES
repeat
180 1 2
forward right
180 x 2 = 360
Drawing Circles
repeat
3
Spinning Circle
n n i Sp
le c r ing Ci
repeat
REPEAT IT 45 TIMES
45 290 290 1
forward back
290 290 1
45o
SPINNING CIRCLES
CHANGE COLORS
set color
80
set pensize
10
set pensize
repeat
8 360
4
heading
290 290
set color
forward back ribackght
w o b n i Ra
Change the pen size
set pensize
repeat
8 360
heading = 0
heading
290 290 1
heading = 20
set color
forward back ribackght
the next time through the heading will be 1, then 2, 3, 4... until 359
RAINBOW
Rainbow
5
Rainbow Math
th a M w o b n i Ra
5
COLORS 0 100
colors will range from 0 to 100 heading range from 0 to 100 heading/360 x 100 goes from 0 to 100
}
the turtle goes off the screen and back to the center number of degrees in a circle
RAINBOW MATH
TRY THIS
6 6
Turtle Shades
es d Sh a e l Turt
shades range from 0 to 200
SHADES 0
6 6
100 200
the turtle goes off the screen and back to the center
SPINNING SHADES
Arc
2 1 2 forward 100 3 radius = 100
ar
angle = 270
ARC
Arc
7
c2
100 70
8
Arcs in a Circle
e l c cir C a n i s c r A do it once
tur
8
n
10
choose a color an df i
do it 10 times
choose a shade
ARCS IN A CIRCLE
he scree ll t
right right
90 10
right
100
s y a R
circle is a i it
left 4
the turtle goes forward but it doesnt come back all the way
250 246 4
nk thi
out ab
forward left
4 4
RAYS
R ays
9
ide ns
10
x e t r y Vo d n Ca
10
pensize gets smaller as the turtle turns (359, 358, 357..) the color and shade are set by the turtles X and Y position
CANDY VORTEX
Candy Vortex
11
y d oth Can o Sm
11
sets a slightly bigger pen size changes the colors more slowly
SMOOTH CANDY
Smooth Cand y
12 12
l a r i Sp
12 12
90 50 80 40 100 60 10 30 20 70
forward right
20 90
forward right
100 90
SPIRAL
Spiral
13 13
Bent Spiral
l a r i p S t n e B
right 90 make a square spiral right 91 makes a bent square spiral
13 13
BENT SPIRAL
14 14
Spin Rainbow
w o b n i a R n i Sp
Click and type to change its name
14 14
SPIN RAINBOW
15 15
Color Squiral
l a r i u q S r o l Co
15 15
The color and shade of the pen change The color depends on the X coordinate The shade depends on the heading
COLOR SQUIRAL
16 16
F l ag
1
forward 100 right 120
3 fo r rig ward h
t1
1 20 00
16 16
forward 100
}
5 the turtle ended where it started
2 3 4
FLAG
Flag
17 17
s g a l F
1. Place this block on top
create a block
17 17
makes 9 flags Create our own blocks and use them in different stacks
FLAGS
Flags
18 18
Windmill
ll i m d n Wi
18 18
WINDMILL
19 19
Spin Square
e r a u q S n i p S make a
square
t
19 19
and another...
n ur o 36
and another...
and another...
SPIN SQUARE
20 20
Flower
r e w o l F
20 20
draw a square of any size length of a side start at 0 make size bigger square 90 square 60 square 30
FLOWER
21 21
Hexrainbow
w o ainb r x He
21 21
start at 0
o
s on g a draw 6 hex
y size n a f
changes its value adding 2 each time size = 0 + 2 = 2 size = 2 + 2 = 4 size = 4 + 2 = 6 ... size = 258 + 2 = 260 size determines how big it is
HEXRAINBOW
22 22
Random Stars
s r a St m o d n a R
22 22
pick a random color from 0 to 100 try this several times what values did you get?
pick a random X position, from -300 to 300, and a random Y position, from -200 to 200
RANDOM STARS
23 23
Not That Random
om d n a R t ha T Not
pick a random color from 0 to 100
23 23
possible X values: -300 -240 -180 -120 -60 0 60 120 180 240 300 possible Y values: -240 -180 -120 -60 0 60 120 180 240 pick a dark shade pick a thick pensize pick a lighter shade pick a thinner pensize
24 24
Bubbles
s e l b b u B
store in box1 a value between 200 and 800
24 24
pick a random positon on the screen
set the pensize and shade so the bubbles get smaller and darker towards the bottom of the screen try making the bubbles lighter and bigger towards the bottom
BUBBLES
25 25
w o l G
place the turtle at the bottom left corner (off the screen)
25 25
Glow
26 26
n e d r Ga
26 26
pick a color, a shade and draw a star
Garden
27 27
Not Quite Plaid
Not
id a l P e t i u Q
27 27
pick a color, a shade and a pen size if box1 = 0 --> draw a vertical line if box1 = 1 --> draw an horizontal line
stores 0 or 1 in box1
28 28
l r i w S
draw a squiggle
28 28
map 0 to 360 range to 0 to 600 range 360 x 1 = 360
then retrace it
Swirl
29 29
One Bad Apple
le p Ap d a B One
29 29
draw 200 good apples
30 30
s n o i t c e fl e R
30 30
draw a spiral from the outside to the inside change the shade and color as you sprial in
Reflections