1
00:00:00.00 --> 00:00:02.00
- In this movie, just for fun,

2
00:00:02.00 --> 00:00:04.06
I'll show you how to
combine a dotted outline

3
00:00:04.06 --> 00:00:07.07
along with a circle to create
this quick and dirty gear.

4
00:00:07.07 --> 00:00:10.05
But the thing about this
gear is that it's perfect

5
00:00:10.05 --> 00:00:13.06
in that it has exactly
20 equally sized teeth,

6
00:00:13.06 --> 00:00:16.08
as well as 20 equally sized grooves.

7
00:00:16.08 --> 00:00:19.04
So the first step is to go
ahead and create a circle

8
00:00:19.04 --> 00:00:22.00
and I'll do that by
selecting the Ellipse tool

9
00:00:22.00 --> 00:00:23.09
from the Shape tool fly out menu.

10
00:00:23.09 --> 00:00:26.02
And then I want you to
position your cursor

11
00:00:26.02 --> 00:00:28.02
on the intersection of
those two guidelines.

12
00:00:28.02 --> 00:00:30.08
Press the alt key or the
option key on the Mac

13
00:00:30.08 --> 00:00:32.08
and drag outwards.

14
00:00:32.08 --> 00:00:35.05
And then as you're dragging,
go ahead and add the shift key

15
00:00:35.05 --> 00:00:38.03
as well, so that you have both
the shift and alt keys down.

16
00:00:38.03 --> 00:00:41.06
Those would be the shift
and option keys on the Mac

17
00:00:41.06 --> 00:00:45.09
until you see a width and
height value of 500 pt each,

18
00:00:45.09 --> 00:00:47.09
at which point you can
go ahead and release

19
00:00:47.09 --> 00:00:50.00
in order to create that circle.

20
00:00:50.00 --> 00:00:52.03
All right, now I want to
assign a fill to the path,

21
00:00:52.03 --> 00:00:54.01
and so I'll click on
the first swatch up here

22
00:00:54.01 --> 00:00:57.00
in the control panel
and I'll select black.

23
00:00:57.00 --> 00:00:58.08
And then I'll also change
the stroke to white,

24
00:00:58.08 --> 00:01:01.01
just so we have a lot of contrast here,

25
00:01:01.01 --> 00:01:02.07
by clicking on the second swatch

26
00:01:02.07 --> 00:01:05.00
and choosing white from the pop-up panel.

27
00:01:05.00 --> 00:01:07.09
All right, now I'm going to
change the line weight to 50 pt,

28
00:01:07.09 --> 00:01:10.06
so that we have some big huge dots.

29
00:01:10.06 --> 00:01:13.00
Problem is they're packed
too closely together.

30
00:01:13.00 --> 00:01:14.06
So I'll click on the word Stroke,

31
00:01:14.06 --> 00:01:16.05
and I'll drop down to the gap value,

32
00:01:16.05 --> 00:01:18.04
and I'll pres shift + up arrow

33
00:01:18.04 --> 00:01:20.05
in order to move those circles apart,

34
00:01:20.05 --> 00:01:23.08
until I get a value of 70 points like so.

35
00:01:23.08 --> 00:01:25.05
Now for whatever reason,

36
00:01:25.05 --> 00:01:28.00
Illustrator has gone ahead
and selected the first icon,

37
00:01:28.00 --> 00:01:30.09
that is, it's preserving the
exact dash and gap links.

38
00:01:30.09 --> 00:01:33.03
And as a result, we have a couple of dots

39
00:01:33.03 --> 00:01:34.08
overlapping each other.

40
00:01:34.08 --> 00:01:37.03
I can solve that problem by
clicking on the line icon,

41
00:01:37.03 --> 00:01:39.04
but that's not necessarily
going to give me

42
00:01:39.04 --> 00:01:40.08
the effect I want.

43
00:01:40.08 --> 00:01:42.04
I am seeing a circle right
at this location here

44
00:01:42.04 --> 00:01:44.02
on the right-hand side, but I want to see

45
00:01:44.02 --> 00:01:46.00
a groove aligned the top of the shape,

46
00:01:46.00 --> 00:01:48.06
as well as exactly aligned,
not nearly aligned,

47
00:01:48.06 --> 00:01:50.09
with this left-hand
point and exactly aligned

48
00:01:50.09 --> 00:01:53.04
with the bottom as well, as we're seeing

49
00:01:53.04 --> 00:01:55.07
in the final version of the gear.

50
00:01:55.07 --> 00:01:57.04
And that means I need to be more specific

51
00:01:57.04 --> 00:01:59.00
about that gap value.

52
00:01:59.00 --> 00:02:02.05
And so let's say I want
a total of 20 grooves

53
00:02:02.05 --> 00:02:05.00
around the entire circle.

54
00:02:05.00 --> 00:02:06.08
And the reason 20 is a great number

55
00:02:06.08 --> 00:02:09.04
is because the circle is
divided into four quadrants,

56
00:02:09.04 --> 00:02:11.02
at least where these anchor
points are concerned.

57
00:02:11.02 --> 00:02:15.09
And 20 is divisible by
four, so you can go 16 or 12

58
00:02:15.09 --> 00:02:17.02
or something like that instead,

59
00:02:17.02 --> 00:02:18.06
but I'm going to go with 20.

60
00:02:18.06 --> 00:02:20.08
Now the thing is, in order
to figure out exactly

61
00:02:20.08 --> 00:02:22.06
what this gap value needs to be,

62
00:02:22.06 --> 00:02:26.05
I need to figure out the
circumference of this circle,

63
00:02:26.05 --> 00:02:30.05
and that means I've got to
engage in a little bit of math,

64
00:02:30.05 --> 00:02:32.06
and not the easy kind of arithmetic math,

65
00:02:32.06 --> 00:02:35.08
but the fairly scary
kind of geometry math.

66
00:02:35.08 --> 00:02:38.06
And in fact, any time you're
trying to figure out a circle,

67
00:02:38.06 --> 00:02:42.01
you've got to engage with pi.

68
00:02:42.01 --> 00:02:44.00
And specifically, the
equation we're looking for

69
00:02:44.00 --> 00:02:46.02
is C, which is the circumference,

70
00:02:46.02 --> 00:02:49.04
equals two times pi times r.

71
00:02:49.04 --> 00:02:51.04
And r is the radius by the way,

72
00:02:51.04 --> 00:02:53.01
which is half of the diameter.

73
00:02:53.01 --> 00:02:55.09
So right now, we have a
circle with a 500 pt diameter.

74
00:02:55.09 --> 00:02:58.07
That means it has a 250 pt radius.

75
00:02:58.07 --> 00:03:00.08
Now this might be pretty darn daunting

76
00:03:00.08 --> 00:03:03.02
and you may have already stopped
the movie for all I know,

77
00:03:03.02 --> 00:03:06.01
but fortunately, there's this
thing called the Internet

78
00:03:06.01 --> 00:03:07.08
that does math for you.

79
00:03:07.08 --> 00:03:09.04
And so I'm going to go
ahead and switch over

80
00:03:09.04 --> 00:03:10.06
to a web browser.

81
00:03:10.06 --> 00:03:12.03
And notice that I've done a search

82
00:03:12.03 --> 00:03:14.01
for a circumference calculator.

83
00:03:14.01 --> 00:03:16.08
For this one, I just need to
enter the radius of the circle

84
00:03:16.08 --> 00:03:19.04
and so I'm going to
click inside this field

85
00:03:19.04 --> 00:03:22.07
and enter half of that
diameter, which is 250,

86
00:03:22.07 --> 00:03:25.04
and I don't even care if it's
points or what the units are.

87
00:03:25.04 --> 00:03:27.05
All I have to do is enter 250

88
00:03:27.05 --> 00:03:29.02
and then click on the Calculate button,

89
00:03:29.02 --> 00:03:31.05
and I get this insane number here,

90
00:03:31.05 --> 00:03:36.00
which is 1570.796,

91
00:03:36.00 --> 00:03:37.04
is good enough.

92
00:03:37.04 --> 00:03:39.05
We can rule out the rest of those digits.

93
00:03:39.05 --> 00:03:41.02
So I'll just go ahead and
write that number down

94
00:03:41.02 --> 00:03:43.07
on a piece of paper and
then I'll switch back over

95
00:03:43.07 --> 00:03:44.08
to Illustrator.

96
00:03:44.08 --> 00:03:47.04
I'll return to my illustration
in progress right here,

97
00:03:47.04 --> 00:03:49.04
and I'll click on the word Stroke

98
00:03:49.04 --> 00:03:51.00
in order to bring up that Stroke panel,

99
00:03:51.00 --> 00:03:53.00
and I'm going to change the gap value

100
00:03:53.00 --> 00:03:55.07
to that circumference number
that we just figured out,

101
00:03:55.07 --> 00:03:59.08
1570.796.

102
00:03:59.08 --> 00:04:02.01
And instead of leaving it at that value,

103
00:04:02.01 --> 00:04:04.02
which actually wouldn't
work, because currently,

104
00:04:04.02 --> 00:04:06.05
the maximum gap value is 1000 points.

105
00:04:06.05 --> 00:04:09.04
I'm going to enter /20,

106
00:04:09.04 --> 00:04:11.04
so I'm going to divide that value,

107
00:04:11.04 --> 00:04:13.04
the entire perimeter of the circle,

108
00:04:13.04 --> 00:04:15.02
we're going to divide it by 20

109
00:04:15.02 --> 00:04:17.03
because that's how many grooves we want.

110
00:04:17.03 --> 00:04:19.00
At which point, I'll press the enter key,

111
00:04:19.00 --> 00:04:20.05
or the return key on the Mac,

112
00:04:20.05 --> 00:04:22.02
in order to apply that change.

113
00:04:22.02 --> 00:04:24.04
And you can see that we now have exactly

114
00:04:24.04 --> 00:04:27.04
one, two, three, four, five grooves

115
00:04:27.04 --> 00:04:31.09
per quadrant, or a total
of 20 grooves in all.

116
00:04:31.09 --> 00:04:34.00
And we have now done
our math so impeccably

117
00:04:34.00 --> 00:04:36.05
that it doesn't matter
which of the alignment icons

118
00:04:36.05 --> 00:04:39.00
we click on here inside the Stroke panel.

119
00:04:39.00 --> 00:04:41.01
You can either click on
preserve exact values,

120
00:04:41.01 --> 00:04:44.09
or click on align, and you'll
get the exact same result.

121
00:04:44.09 --> 00:04:46.03
All right, now we need to take advantage

122
00:04:46.03 --> 00:04:48.07
of a couple of commands
that we haven't seen before.

123
00:04:48.07 --> 00:04:50.06
First, you go up to the Object menu,

124
00:04:50.06 --> 00:04:53.08
choose Path and then
choose Outline Stroke.

125
00:04:53.08 --> 00:04:56.06
And that will draw path
outlines around all the strokes

126
00:04:56.06 --> 00:04:57.08
as we're seeing here.

127
00:04:57.08 --> 00:05:00.06
And now I want to subtract
those white circles

128
00:05:00.06 --> 00:05:02.04
from the big black circle,

129
00:05:02.04 --> 00:05:04.08
and the easiest way to do that
is to go to the Window menu

130
00:05:04.08 --> 00:05:06.09
and choose the Pathfinder command,

131
00:05:06.09 --> 00:05:09.02
which will bring up the Pathfinder panel,

132
00:05:09.02 --> 00:05:12.03
and this panel is so great
that I devote an entire chapter

133
00:05:12.03 --> 00:05:14.02
to it in the advanced course.

134
00:05:14.02 --> 00:05:16.08
But for now, just go ahead
and click on the second icon

135
00:05:16.08 --> 00:05:19.04
in the first row, Minus Front.

136
00:05:19.04 --> 00:05:22.00
And that will subtract
the white circles away.

137
00:05:22.00 --> 00:05:24.04
All right, now we need to carve
a circle out of the center

138
00:05:24.04 --> 00:05:26.08
of the gear, and we'll
do that, once again,

139
00:05:26.08 --> 00:05:28.02
using the Ellipse tool.

140
00:05:28.02 --> 00:05:30.04
And so I'll go ahead
and press the alt key,

141
00:05:30.04 --> 00:05:31.07
or the option key on the Mac,

142
00:05:31.07 --> 00:05:33.02
and drag out from the center,

143
00:05:33.02 --> 00:05:34.06
while pressing the shift key as well,

144
00:05:34.06 --> 00:05:36.02
so I've got both the
shift and alt keys down,

145
00:05:36.02 --> 00:05:38.02
that's shift and option on the Mac,

146
00:05:38.02 --> 00:05:41.01
until I get width and
height values of 300 pt.

147
00:05:41.01 --> 00:05:43.09
And now, to carve that
circle out of the gear,

148
00:05:43.09 --> 00:05:46.02
go ahead and switch back
to the Black Arrow tool,

149
00:05:46.02 --> 00:05:48.03
which you can get by pressing the V key,

150
00:05:48.03 --> 00:05:50.03
partially marquee those shapes,

151
00:05:50.03 --> 00:05:52.01
but don't marquee the
center because you'll end up

152
00:05:52.01 --> 00:05:54.04
selecting that rectangle
from the previous movie.

153
00:05:54.04 --> 00:05:58.04
And then go to the Object
menu, choose Compound Path

154
00:05:58.04 --> 00:06:00.07
and choose Make, and
that'll cut that circle

155
00:06:00.07 --> 00:06:02.02
out of the center.

156
00:06:02.02 --> 00:06:03.09
All right, now I want
to create a copy of it

157
00:06:03.09 --> 00:06:06.04
by pressing ctrl + c, ctrl + f,

158
00:06:06.04 --> 00:06:09.02
that would be cmd + c, cmd + f on the Mac,

159
00:06:09.02 --> 00:06:11.04
and you can see that we
now have a duplicate.

160
00:06:11.04 --> 00:06:13.02
Go and put it back where it was though.

161
00:06:13.02 --> 00:06:15.02
And now I'll click on the fill swatch

162
00:06:15.02 --> 00:06:16.09
up here in the control panel,

163
00:06:16.09 --> 00:06:18.07
and I'll select this brighter orange,

164
00:06:18.07 --> 00:06:22.05
which is R=251 G=176 B=59.

165
00:06:22.05 --> 00:06:25.04
And now I'll set the line weight to 4 pt.

166
00:06:25.04 --> 00:06:27.06
For some reason, that
gives me a white stroke,

167
00:06:27.06 --> 00:06:29.01
which is, of course, not what I want,

168
00:06:29.01 --> 00:06:32.00
so I'll go ahead and click on
that white swatch right there

169
00:06:32.00 --> 00:06:36.01
and I'll change it to black in
order to produce this effect.

170
00:06:36.01 --> 00:06:38.06
All right, now I'll
press shift + up arrow,

171
00:06:38.06 --> 00:06:41.02
shift + right arrow in
order to offset that gear

172
00:06:41.02 --> 00:06:42.02
up into the right.

173
00:06:42.02 --> 00:06:44.06
And then I'll marquee both
the gear and its shadow

174
00:06:44.06 --> 00:06:47.01
and press shift + down
arrow, shift + left arrow

175
00:06:47.01 --> 00:06:49.07
in order to put them
back where they belong.

176
00:06:49.07 --> 00:06:52.02
And now I'll click off the
shapes in order to deselect them,

177
00:06:52.02 --> 00:06:54.00
and I'll turn off the guides layer

178
00:06:54.00 --> 00:06:56.08
so that we can see the
gear and its dotted outline

179
00:06:56.08 --> 00:06:58.08
all by themselves.

180
00:06:58.08 --> 00:07:01.06
And that's how you combine a
dotted outline with a circle

181
00:07:01.06 --> 00:07:06.06
to create a quick and dirty
gear here inside illustrator.

