< Return to Video

2D & 3D Drawing Overview - Google Web Designer

  • 0:04 - 0:08
    My name is Lucas, and I'm an engineer
    on Google Web Designer.
  • 0:08 - 0:11
    In this video,
    we'll talk about how to use
  • 0:11 - 0:15
    Google Web Designer's
    2D and 3D drawing capabilities.
  • 0:15 - 0:18
    To start,
    I will draw a div,
  • 0:18 - 0:20
    which is an HTML container element.
  • 0:20 - 0:22
    So I select the tag tool.
  • 0:22 - 0:23
    And we see that
    in the upper bar,
  • 0:23 - 0:27
    I have some options that control
    the visual appearance of the div.
  • 0:27 - 0:30
    So I can set the
    colour, like this.
  • 0:30 - 0:33
    And I can choose how
    rounded the corners are.
  • 0:33 - 0:35
    If I click and
    drag on the stage,
  • 0:35 - 0:38
    then I see the coordinates
    of the upper-left
  • 0:38 - 0:39
    and lower-right
    corners of the element,
  • 0:39 - 0:41
    and also the element's
    width and height.
  • 0:41 - 0:45
    And when I let go of the
    mouse, the element is created.
  • 0:46 - 0:48
    Once you have some
    geometry on the stage,
  • 0:48 - 0:52
    Google Web Designer attempts to make
    some inferences about this geometry,
  • 0:52 - 0:54
    to help you align things more cleanly.
  • 0:54 - 0:57
    For example, right now,
    it's detected that the mouse
  • 0:57 - 1:00
    is near the upper edge of that
    element that I just drew.
  • 1:00 - 1:04
    So if I draw a new element,
    its top edge is aligned with it.
  • 1:04 - 1:06
    I can then align the bottom
    edge of the new element
  • 1:06 - 1:09
    with the middle of the original
    or with the bottom.
  • 1:12 - 1:14
    If I switch to the
    selection tool,
  • 1:14 - 1:16
    I can move the element around.
  • 1:16 - 1:21
    By clicking on one edge,
    I can snap to other edges in the scene.
  • 1:21 - 1:24
    And by clicking on a corner,
    I can snap to other corners.
  • 1:26 - 1:29
    This snapping behaviour
    can make it easier to align your elements.
  • 1:29 - 1:31
    But if you don't
    want the behaviour,
  • 1:31 - 1:33
    you can turn it off by
    going to the 'View' menu
  • 1:33 - 1:35
    and unticking the 'Snap' option.
  • 1:37 - 1:39
    Google Web Designer
    also provides
  • 1:39 - 1:42
    a set of basic 2D drawing tools.
  • 1:42 - 1:45
    For example, I can
    draw 2D Bézier curves.
  • 1:45 - 1:48
    I can create rectangles,
  • 1:48 - 1:50
    or ovals,
  • 1:51 - 1:53
    or lines.
  • 1:55 - 1:57
    If I select an element, then
    I can edit its properties
  • 1:57 - 1:59
    in the Property Inspector.
  • 1:59 - 2:03
    For example, I will change
    the colour of this element,
  • 2:03 - 2:06
    and I will change
    its width and height.
  • 2:06 - 2:09
    Right now, I'm dragging
    in the text field
  • 2:09 - 2:10
    to continuously change it.
  • 2:10 - 2:13
    But you can also just
    type in the value.
  • 2:14 - 2:18
    To give another example,
    I will select this oval,
  • 2:18 - 2:21
    I will change its fill colour,
  • 2:21 - 2:26
    and I will give it an inner radius
    to convert it into a ring.
  • 2:29 - 2:32
    While all this that we've
    done so far is in 2D,
  • 2:32 - 2:35
    Google Web Designer is
    built on a 3D architecture,
  • 2:35 - 2:39
    and to see this,
    I will turn on the 3D grid.
  • 2:39 - 2:43
    I can now rotate the view of
    the stage with the view tool.
  • 2:43 - 2:45
    And we can see that all the
    elements I just created
  • 2:45 - 2:47
    are in the xy-plane.
  • 2:47 - 2:49
    And if we rotate far enough,
    then a different plane,
  • 2:49 - 2:53
    in this case the yz-plane,
    becomes active.
  • 2:53 - 2:55
    So, with that active,
    if I draw a new element,
  • 2:55 - 2:58
    then it is placed in that plane.
  • 2:58 - 3:00
    If I, once again,
    rotate the view,
  • 3:00 - 3:03
    you can see I have one
    element in the yz-plane,
  • 3:03 - 3:06
    and then everything
    else in the xy-plane.
  • 3:06 - 3:08
    If you want to return
    to the default view,
  • 3:08 - 3:10
    where you're looking
    at the xy-plane,
  • 3:10 - 3:12
    just double-click
    on the view tool.
  • 3:14 - 3:16
    So far, we've only
    created elements in 2D
  • 3:16 - 3:18
    and viewed them in 3D.
  • 3:18 - 3:21
    But we can also
    edit elements in 3D.
  • 3:21 - 3:24
    So here, I've stuck to the
    rotate tool and an element.
  • 3:24 - 3:25
    And now if I drag
    on the element,
  • 3:25 - 3:28
    I can freely rotate it.
  • 3:28 - 3:31
    I can also rotate it
    about a specific axis
  • 3:31 - 3:35
    by clicking and
    dragging on these rings.
  • 3:36 - 3:38
    When you use the rotate tool,
    there are two modes:
  • 3:38 - 3:41
    a 'Local' mode and a 'Global' mode.
  • 3:41 - 3:43
    When you're in 'Local' mode,
    you rotate about
  • 3:43 - 3:45
    the element's local
    x-, y- and z-axes.
  • 3:45 - 3:50
    So right now, I'm rotating
    about the element's x-axis,
  • 3:50 - 3:53
    and here, I'm rotating
    about its z-axis.
  • 3:54 - 3:58
    If you're in 'Global' mode, then you
    rotate about the stage's axes.
  • 3:58 - 4:02
    So here, I rotate about
    the global z-axis.
  • 4:02 - 4:04
    You can also translate
    elements in 3D.
  • 4:04 - 4:08
    So here, I translate
    in x and in y.
  • 4:08 - 4:10
    This is still in 'Global' mode,
  • 4:10 - 4:12
    so it's in the stage's
    coordinate system.
  • 4:12 - 4:15
    But I can change to 'Local' mode,
  • 4:15 - 4:20
    and now move along the element's
    own x-axis or y-axis or z-axis.
  • 4:20 - 4:22
    If I drag the element itself,
  • 4:22 - 4:25
    then it translates in the
    element's plane.
  • 4:25 - 4:28
    Finally, if I select
    part of an object
  • 4:28 - 4:30
    and hold the 'Control' key,
  • 4:30 - 4:33
    I can snap that part
    to other elements in 3D.
  • 4:33 - 4:36
    So right now, I've snapped
    these two corners together.
  • 4:36 - 4:38
    And you see that if
    I rotate the view,
  • 4:38 - 4:40
    they are exactly stuck together.
  • 4:42 - 4:45
    So that concludes this look at
    Google Web Designer's
  • 4:45 - 4:48
    2D and 3D drawing capabilities.
  • 4:48 - 4:50
    Thank you for watching.
Title:
2D & 3D Drawing Overview - Google Web Designer
Description:

more » « less
Duration:
04:52

English, British subtitles

Revisions