WEBVTT

00:00:00.000 --> 00:00:02.850
hi in this video we're going to learn

00:00:02.850 --> 00:00:04.650
some extra commands that will bring your

00:00:04.650 --> 00:00:08.010
masterpiece to the next level right now

00:00:08.010 --> 00:00:10.410
Tracy can only turn 90 degrees left or

00:00:10.410 --> 00:00:12.360
right but what if we want Tracy to draw

00:00:12.360 --> 00:00:14.580
diagonal lines for us we need to be able

00:00:14.580 --> 00:00:17.029
to turn her to any angle that we wish

00:00:17.029 --> 00:00:19.590
instead of putting a 90 between the

00:00:19.590 --> 00:00:20.970
parentheses after a left or right

00:00:20.970 --> 00:00:23.460
command we can place any angle we want

00:00:23.460 --> 00:00:25.680
and Tracy will turn that many degrees to

00:00:25.680 --> 00:00:28.920
the left or the right another command we

00:00:28.920 --> 00:00:30.689
can use with Tracy is the pen size

00:00:30.689 --> 00:00:33.270
command we use the term pen size and

00:00:33.270 --> 00:00:35.820
then put a number in parentheses the

00:00:35.820 --> 00:00:37.469
number corresponds to the number of

00:00:37.469 --> 00:00:39.870
pixels in the line so any number can be

00:00:39.870 --> 00:00:42.300
used any number less than one will

00:00:42.300 --> 00:00:45.719
default to a thickness of one the circle

00:00:45.719 --> 00:00:47.610
command can be used to have Tracy draw

00:00:47.610 --> 00:00:49.860
circles on our canvas we write the word

00:00:49.860 --> 00:00:52.199
circle and then inside parentheses we

00:00:52.199 --> 00:00:56.219
place a radius value after entering a

00:00:56.219 --> 00:00:58.890
radius value if we want to draw less

00:00:58.890 --> 00:01:01.020
than a full circle we can enter an

00:01:01.020 --> 00:01:03.359
extent value which will tell Tracy how

00:01:03.359 --> 00:01:05.189
many degrees of a circle you want her to

00:01:05.189 --> 00:01:08.430
draw if you enter 360 she'll draw a full

00:01:08.430 --> 00:01:11.130
circle 180 will give you a half or semi

00:01:11.130 --> 00:01:13.470
circle and 90 degrees will give you a

00:01:13.470 --> 00:01:16.500
quarter of a circle the last parameter

00:01:16.500 --> 00:01:18.509
we can enter in our circle command is a

00:01:18.509 --> 00:01:21.030
step value steps correspond to the

00:01:21.030 --> 00:01:23.130
number of points in your circle if you

00:01:23.130 --> 00:01:25.470
enter a 1 here Tracy will draw a dot if

00:01:25.470 --> 00:01:27.869
you enter 2 Tracy will draw a line if

00:01:27.869 --> 00:01:30.540
you enter 3 she'll draw triangle 4 is a

00:01:30.540 --> 00:01:34.500
square and so on we can more immediately

00:01:34.500 --> 00:01:36.450
move Tracy around the grid world by

00:01:36.450 --> 00:01:38.579
using the set position command which

00:01:38.579 --> 00:01:40.409
will have Tracy move directly to that

00:01:40.409 --> 00:01:42.899
spa in a straight line if you have not

00:01:42.899 --> 00:01:44.790
called the pen up command before using

00:01:44.790 --> 00:01:46.920
this command she will leave a trail as

00:01:46.920 --> 00:01:48.659
she goes from her current position to

00:01:48.659 --> 00:01:50.759
the position you have called you will

00:01:50.759 --> 00:01:52.320
notice that the direction Tracy is

00:01:52.320 --> 00:01:54.390
facing does not change when you set her

00:01:54.390 --> 00:01:56.610
position so if she was facing right

00:01:56.610 --> 00:01:57.960
before the command was called

00:01:57.960 --> 00:01:59.880
she will still be facing right after

00:01:59.880 --> 00:02:03.780
moving the last command we're going to

00:02:03.780 --> 00:02:05.490
learn doesn't have to do with moving

00:02:05.490 --> 00:02:07.770
Tracy but we'll make it a lot easier for

00:02:07.770 --> 00:02:09.810
us to create masterpieces with many

00:02:09.810 --> 00:02:12.600
commands that's the speed command

00:02:12.600 --> 00:02:14.490
call this command at the beginning of

00:02:14.490 --> 00:02:16.350
your code to set the speed for the

00:02:16.350 --> 00:02:19.050
entire program to use the speed command

00:02:19.050 --> 00:02:21.570
you type a number from 0 to 10 into the

00:02:21.570 --> 00:02:24.120
parentheses a speed of 1 is the slowest

00:02:24.120 --> 00:02:26.790
10 is very fast and zero is almost

00:02:26.790 --> 00:02:29.820
immediate explore the examples given to

00:02:29.820 --> 00:02:31.710
see how all of these commands can be put

00:02:31.710 --> 00:02:33.930
together to create awesome works of art

00:02:33.930 --> 00:02:35.580
then it's your turn

00:02:35.580 --> 00:02:38.990
to make your final masterpiece
