Karlie Kloss explains how to use math with the artist in Code Studio
-
0:04 - 0:14if I went to draw a rectangle that is 50
pixels tall and that is twice as wide as -
0:14 - 0:15it is tall
-
0:15 - 0:20how would I programmed the computer to
do that well I could tell the artist to -
0:20 - 0:26go up 50 turn right and then go over 100
and move the whole thing twice but then -
0:26 - 0:31i'm doing the math for the computer
multiplying 50 x 2 in your head may not -
0:31 - 0:36be that hard but computers are really
good doing that so we should leave it to -
0:36 - 0:41them whenever possible if I just use the
variable called height instead then I -
0:41 - 0:47could easily change height 250 and then
change my algorithm to tell the artist -
0:47 - 0:53to go up by height turn right and then
go over x height x 2 which gives us a -
0:53 - 0:56rectangle that is twice as wide as it is
tall