Nested Loops with the artist in Course 4
-
0:05 - 0:11When you put a loop inside of another loop,
we call that a nested loop. For example, here -
0:11 - 0:17we're given the code already to draw one triangle
with sides of length 100 pixels using the -
0:17 - 0:22repeat times block set to three, once for
each side of a triangle. But we want to draw -
0:22 - 0:27six triangles. In order to do that, we're
going to take that loop and place it inside -
0:27 - 0:30of another repeat times block. Pretty cool!
奕德 余 edited English subtitles for Nested Loops with the artist in Course 4 |