Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Sketch Basics!
You have completed Sketch Basics!
Preview
Learn how to use shapes and vectors within your document.
You can see these and more features at the Bohemian Coding Features Page
-
Line Tool used to draw lines in your documents
-
Arrow Tool used like the line tool, but will have an arrow applied to the end point
-
Rectangle Tool is used frequently and can be accessed by pressing the R key
-
Oval Tool behaves the same way as the Rectangle Tool and can be accessed by pressing the O key
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Most layers you create in Sketch will be
made up of shapes, and
0:00
we now know these can be found in the
Insert menu in the tool bar.
0:03
There you will find a choice of eight
shapes to choose from.
0:07
So, let's take a brief look at the most
commonly used ones.
0:11
The line tool can be used to draw lines on
the document.
0:15
Once selected, just click and drag to
create your line.
0:19
[BLANK_AUDIO]
0:23
This will draw a path on the canvas, which
has a border whose thickness you can
0:27
adjust and not a fill as there is no area
to fill.
0:32
The Arrow tool works the same way as the
Line tool but
0:36
will have an arrow applied to the endpoint
where you release your mouse's click.
0:39
Here, you can use a fill to define the
color of the arrow's head.
0:44
Next is the rectangle tool, which you've
seen a couple of times already.
0:49
Because this is a shape that is frequently
used in Sketch, it has its own shortcut.
0:54
Just press r, and you can see the cursor
has changed to include a little square.
0:59
When you click and
1:05
drag to create a shape in your canvas you
can hold down the shift key to turn
1:06
the rectangle into a perfect square by
making the height the same as the width.
1:11
[BLANK_AUDIO]
1:16
Whilst your rectangle is selected you can
alter the corner radius on the shape
1:18
to give it some nice rounded corners in
the Inspector.
1:23
Just under the Rotate and Flip options.
1:26
[BLANK_AUDIO]
1:29
The oval tool, which we've also seen
before,
1:32
behaves the exact same way as the
rectangle tool.
1:35
The shortcut for this shape is simply just
the O key.
1:39
Again, hold shift to turn the oval into a
circle.
1:44
Rounded simply creates a rounded rectangle
1:51
whose radius you can adjust in the
Inspector like the rectangles.
1:54
Both are included in Sketch as you may
want to quickly draw
1:59
either options without having to adjust
them later.
2:03
This style and polygon tools will add
simple shapes to the canvas.
2:07
But can be quite flexible due to the
options that come with it.
2:11
In the Inspector, you can add or remove
points for both.
2:16
As well as adjusting the radius on the
star,
2:19
which will allow you to completely alter
the original shape.
2:21
[BLANK_AUDIO]
2:24
A good way to make the more complex
shapes, is to use the simpler,
2:27
basic shapes as building blocks, using
something called Boolean Operations.
2:31
There are four different types of
operations you can perform.
2:37
And the easiest way to explain them is by
seeing them in action.
2:40
To start I'll just scroll the shapes off
and create a circle using the oval tool.
2:45
So I'll press O and then hold down shift
when I click and drag to make it a circle.
2:52
I'll then duplicate it by pressing command
and D.
2:58
I'll just drag the copy to the side, just
here, and quickly adjust their colors.
3:03
[BLANK_AUDIO]
3:08
Now we have two shapes.
3:24
I'll make sure both of them are selected.
3:26
You can now see the Boolean operations
icons in the toolbar are now active.
3:27
Meaning we can join them.
3:34
Starting off with union, we can see two
things that happen when you click it.
3:37
You can see the color of one of these
ovals has changed and
3:42
now the two layers have become one.
3:46
And the arrow has appeared next to the
layer's name.
3:49
So if we click to expand it,
3:52
we can view the two oval layers as sub
paths of this shape.
3:54
We can select any of these sub-paths and
move them around, and
3:59
they will still be connected.
4:03
When the join type is union, they don't
need to overlap each other.
4:06
But for every other type, they do.
4:11
So with a sub par selected in a layer, we
can change the operation type.
4:14
Click on the icon on the right of the
layer list and when we select subtract
4:19
from the menu, it will cut the sub path
out of the ones that lie underneath it.
4:24
If we intersect this sub path the fill is
in the area between the two shapes.
4:31
It kind of gives you this Venn diagram
like effect.
4:38
And if we change the join type to
different ,you'll
4:42
see the overlapping part of these two
layers is now cut out.
4:46
You can add more layers to an existing
layer with Boolean operations
4:50
applied by selecting both and performing
an operation.
4:54
Sub path within a layer, can have multiple
operations.
4:58
Such as a union on top of a sub path
that's being subtracted.
5:02
Just like any other layers, their order is
also important.
5:07
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up