< Return to Video

Karlie Kloss explains how to use math with the artist in Code Studio

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

more » « less
Video Language:
English
Duration:
0:58

English subtitles

Revisions