Publishers of technology books, eBooks, and videos for creative people

Home > Articles

This chapter is from the book

Working with basic shapes

In the first part of this lesson, you’ll create all kinds of shapes, including rectangles, ellipses, and polygons.

Shapes you create are made of anchor points, with paths connecting the anchor points.

f0082-01.jpg

For instance, a basic square is made of four anchor points on the corners, with paths connecting those anchor points (see the upper figure at right). A shape is referred to as a closed path because the ends of the path are connected.

A path like a line is an open path. An open path has distinct anchor points on each end, called endpoints (see the figure at right). You can fill both open and closed paths with color, gradients, or patterns.

f0082-02.jpg

Creating rectangles

The main logo art for the adventure company will be a bear. First we’ll create the larger rectangle that will be the body of the bear.

  1. Select the Rectangle tool (rectangle_tool.jpg) in the toolbar.

  2. Near the top of the artboard, drag to create a rectangle, and then release the mouse button. Don’t worry about the size yet; you’ll resize it shortly.

    f0082-03.jpg

    As you drew the shape, did you happen to notice the width and height in the little gray tool tip next to the pointer? That is called the measurement label. That label is a part of Smart Guides (View > Smart Guides).

  3. Move the pointer over the blue center dot of the rectangle (called the center point widget). When the pointer changes (pointer-new.jpg), drag the shape into the middle of the artboard.

    With the Rectangle tool selected, this is how you move a shape. Otherwise, you’ll draw a new one!

    Next, you’ll create a smaller rectangle using a more precise method to serve as the head of the bear.

  4. With the Rectangle tool (rectangle_tool.jpg) selected, click in an empty area of the artboard to open the Rectangle dialog box.

  5. In the dialog box, change the Width to 2.3 inches and the Height to 1.3 inches. Click OK to create a new rectangle.

    The rectangle is created wherever you click. Creating a rectangle this way is useful when you need to make a shape of a specific size.

Editing rectangles

All of the main shape tools create Live Shapes. Live Shapes have attributes, such as width, height, rotation, and corner radius, that are editable without switching from the drawing tool you are using. With two rectangles created, you’ll make some changes to them so they look more like the body and head of a bear and are scaled relative to each other.

  1. Select the Selection tool (selection_tool.jpg) in the toolbar.

  2. Click the View menu and make sure that Smart Guides are on. A checkmark will appear next to Smart Guides in the menu if they are.

    f0083-02.jpg

    You can turn the Smart Guides on when they are useful. In this case, when you resize one of the rectangles, you will see a gray measurement label telling you its size.

  3. Click anywhere in the larger rectangle to select it.

    In Lesson 2 you learned about the bounding box and its points. Now you’ll resize the rectangle using them!

  4. Drag the bottom, middle point of the rectangle until you see a height of approximately 4.6 inches in the measurement label (the gray tool tip next to the pointer), release the mouse button.

    f0083-03.jpg

    Since your rectangle might be bigger or smaller, I didn’t tell you which way to drag (up or down).

    You can also resize shapes with more precision in the Properties panel, which is what you’ll do next.

  5. In the Transform section of the Properties panel on the right, make sure Maintain Width And Height Proportions to the right of Width (W:) and Height (H:) is unselected (it looks like this: unlink.jpg).

    f0084-01.jpg

    Setting Maintain Width And Height Proportions (turning it on) is useful when you change the height or the width and want the other value to change proportionally.

  6. Select the Width (W:) value, and type 2.9 in. Press Return or Enter to accept the change.

    Now you’ll rotate the larger rectangle so the bear body is horizontal.

  7. Move the pointer just off a corner of the larger rectangle. When you see rotate arrows (rotate_arrow_text1.jpg), drag clockwise to rotate the shape. As you drag, press the Shift key to constrain the rotation to increments of 45 degrees. When the rectangle is horizontal, release the mouse button and then the key.

    Now you’ll drag the smaller rectangle onto the larger rectangle. With the Selection tool, you can drag from anywhere within the shape bounds, as long as it is filled with a color, pattern, or gradient.

  8. Drag the smaller rectangle onto the larger rectangle where the head of the bear should go.

  9. Choose File > Save to save the file.

    f0085-01.jpg

Changing the color of the shapes

By default, shapes are filled with white and have a black stroke (border). Next, you’ll change the color of both rectangles to brown so they start to look more like a bear.

  1. With the smaller rectangle selected, click the Fill color box (fill_box_white.jpg) in the Contextual Task Bar.

  2. In the panel that opens, make sure that Swatches (swatches_option.jpg) is selected. Select a brown color to fill the shape.

  3. Click the Stroke option (stroke-button.jpg) in the Contextual Task Bar and change the Stroke Weight to 0 (zero).

  4. Click the larger rectangle to select the body of the bear.

  5. For practice, change the fill color to the same brown and set the Stroke Weight to 0 (zero) following the previous steps.

  6. Choose Select > Deselect.

    f0086-01.jpg

Rounding rectangle corners by dragging

The rectangles you created don’t look very much like a bear yet. Luckily, we can round the corners of the rectangles to make them more interesting.

f0086-02.jpg
  1. Select the larger rectangle.

  2. Choose View > Zoom In once or twice.

    You need to see the Live Corners widgets (corner_widget.jpg) in each corner of the rectangle. If you are zoomed out far enough, the Live Corners widgets are hidden on the shape. Zoom in until you see them.

  3. Drag any of the Live Corners widgets (corner_widget.jpg) in the rectangle toward the center to round all of the corners. Drag until the corners are as round as they can be.

    Drag a Live Corners widget far enough and a red arc appears on the shape, indicating you’ve reached the maximum corner radius.

  4. Click to select the smaller brown rectangle (the head of the bear), and drag any of the Live Corners widgets (corner_widget.jpg) to round the corners a little.

Rounding individual corners

You can also round individual corners using the Selection tool. Next, you’ll explore rounding the individual corners of the head of the bear.

f0087-01.jpg
  1. With the smaller rectangle selected, click the Live Corners widget (corner_widget.jpg) in the upper-right corner to select it, and then release.

    f0087-02.jpg

    If you move the pointer away, you will see that the widget has changed in appearance, from this (corner_widget.jpg) to this (corner_widget_selected.jpg). If you drag that corner widget now, it will be the only one that changes.

  2. Now, drag the selected corner widget away from the center of the shape to remove the rounding.

    f0087-03.jpg

    Be careful! If you don’t click, release, and then drag, you won’t select just the one corner widget. Instead, you’ll round them all!

  3. Follow the previous steps to remove the rounding from the lower-left corner of the rectangle as well.

    f0087-04.jpg
  4. Click the corner widget in the lower-right corner and release to select it.

  5. Then drag it toward the opposite corner, rounding the corner as much as possible.

  6. Choose Select > Deselect.

  7. Choose File > Save.

Discover other ways to round corners video_icon_final.jpg

There are so many ways to round corners. To learn more ways, check out the video Discover other ways to round corners, which you’ll find in the Web Edition. For more information, see the “Web Edition” section of “Getting Started” at the beginning of the book.

Changing a corner type

Aside from dragging to round corners, you can also use the Properties panel to change the type of corner radius and make more precise adjustments. The three types are shown in the figure at right.

f0088-01.jpg

Now you’ll make a copy of the larger rectangle and change the corner types for a few corners. This rectangle will become the belly of the bear.

  1. Choose View > Fit Artboard In Window to see the entire artboard.

  2. Select the larger rectangle, and to copy it, choose Edit > Copy, and then paste it by choosing Edit > Paste.

  3. Drag the copy just below the other rectangles.

    You might need to select the two original rectangles and move them up a bit. If you do, make sure to select the copy again before continuing.

    f0088-02.jpg
  4. In the Properties panel, click More Options (more_options.jpg) in the Transform section to show more options. It’s circled in the following figure.

  5. Ensure that Link Corner Radius Values is off—it should look like this: link_harmony.jpg. You can click the button to toggle it on and off. It’s circled in the figure.

    f0088-03.jpg

    Each corner value in the panel corresponds to a corner in the shape.

    For the next step, pay attention to which corner is adjusted in the figure. Since the rectangle was rotated earlier, the corner values in the panel no longer seem to correspond to the correct corner in the shape.

  6. Change the lower-left and lower-right corners of the rectangle to 0 (zero).

    Aside from changing the corner radius, you can also change the corner type. You can choose between Round (default), Inverted Round, and Chamfer.

  7. Change the Corner Type setting for the upper-left corner and upper-right corner of the rectangle to Chamfer (chamfer.jpg).

  8. Make the corner radius for the same corners smaller—around 1 inch.

  9. Press the Escape key to close the options panel, and leave the rectangle selected.

  10. Drag a side handle to make the shape narrower. See the figure.

    f0089-04.jpg

Creating an ellipse

The Ellipse tool is used to create ellipses and perfect circles. Next, you’ll create an ellipse with the Ellipse tool (ellipse_tool.jpg) to make an eye for the bear.

  1. Press and hold the mouse button on the Rectangle tool (rectangle_tool.jpg) in the toolbar, and select the Ellipse tool (ellipse_tool.jpg).

    When you draw the circle that will become the eye of the bear, you’ll can make it bigger than it will be in the end so you can work with it more easily.

  2. In an empty area of the artboard, Shift-drag to make a perfect circle that will become the eye of the bear. As a reference, I made mine about 1 inch in width and height. Release the mouse button and then the key.

    f0090-01.jpg
  3. Zoom in to the circle by choosing View > Zoom In a few times or by pressing Command and + (macOS) or Ctrl and + (Windows) a few times.

Editing an ellipse

With the eye shape (circle) created, now you’ll change the appearance and put it in place.

  1. Press the letter D on your keyboard to apply the default of a white fill and black stroke.

    f0090-02.jpg

    This is a keyboard shortcut that I use a lot to remove formatting from shapes and get them back to a default (that’s what the “D” stands for) appearance of a white fill and black stroke!

  2. Change the Stroke Weight setting in the Properties panel to 19 pt.

    You could also have used the same method as before to change the stroke weight—using the Contextual Task Bar. Now, we need the fill to be black and the stroke to be white. So the opposite of what is applied to the current shape.

  3. To swap the fill and stroke colors, click the Swap Fill And Stroke arrow (swap-fill-stroke.jpg) toward the bottom of the toolbar on the left.

  4. To see everything, choose View > Fit Artboard In Window.

  5. Drag the circle by the blue center dot (the center point widget) onto the head of the bear, as you see in the figure.

    f0091-02.jpg

    Next you’ll make the eye smaller. By default, stroke weights do not scale (they stay the same). So if you were to make the circle a lot smaller, for instance, the stroke weight would stay 19 pt and look rather large. See the figure for an example. To scale the stroke as the circle scales, you can turn on an option.

    f0091-03.jpg
  6. Click the More Options button (more_options.jpg) in the Transform section of the Properties panel. Select Scale Strokes & Effects in the panel that opens.

    f0091-04.jpg
  7. Shift-drag the circle to make it smaller. When it’s small enough to look good, release the mouse button and then the key.

  8. Drag the eye where you want it on the bear head.

  9. Choose File > Save.

    f0091-05.jpg

Changing stroke alignment

As you’ve seen, strokes are borders of an object or path. By default, strokes center on a path, which means that along the path, half the stroke weight is on one side and half is on the other.

f0092-01.jpg

You can adjust this alignment so the stroke appears in the center (default), inside, or outside. Next, you’ll change the stroke so you can see more of the fill of the eye.

  1. With the eye circle still selected, zoom in by pressing Command and + (macOS) or Ctrl and + (Windows) a few times.

  2. Click the word “Stroke” in the Properties panel to open the Stroke panel.

  3. In the Stroke panel, click the Align Stroke To Outside button (align_stroke_outside.jpg) to align the stroke to the outside edge of the circle.

    I hope you can see the difference when the stroke is aligned to the outside. Zoom in if you need to. I made the eye a little smaller after aligning the stroke.

  4. Choose Select > Deselect.

Creating a pie shape from an ellipse

Ellipses have a pie widget that you can drag to create a pie shape. Next, you’ll make a new circle and turn it into an ear.

  1. With the Ellipse tool (ellipse_tool.jpg) still selected, change the Stroke Weight in the Properties panel to 0.

    f0092-03.jpg
  2. Shift-drag to make another circle in an empty area of the artboard.

    This circle will become the ear of the bear—but you can make it bigger and scale it down later, if you want.

    f0092-04.jpg

    With it selected, do you see the pie widget (pie-widget.jpg) on the right side of the shape? You can drag that to make a pie shape.

  3. Drag the pie widget clockwise around the bottom of the ellipse, and then release.

    Notice that there is another pie widget in the same place from which you started dragging this one. The pie widget you just dragged is called the pie start angle, and the other pie widget is called the pie end angle.

  4. Drag the other pie widget (the pie end angle) from the same place counterclockwise around the top of the ellipse. Don’t worry about how far.

    The ear shape you are making will look best if we see exactly half of it. That requires the two pie widgets you dragged to be at precise angles to each other—showing 180 degrees of the circle. You can adjust them with precision in the Properties panel.

  5. In the Contextual Task Bar, click the Ellipse Properties.

  6. Choose 90° from the Pie Start Angle (pie-angle.jpg) menu.

  7. Choose 270° from the Pie End Angle (pie-end.jpg) menu.

  8. Drag the half-circle ear on top of the bear head.

  9. With the ear still selected, change the Fill color in the Properties panel to a lighter brown than the bear head.

  10. Try adjusting the size of the ear if you need to make it look better, and rotate it slightly.

    f0094-01.jpg

    Want a little practice? You could make a new ear (or copy) to give the bear two ears! The new ear might look better if it were behind the bear head—so you can choose Arrange > Send To Back.

Drawing lines

Lines created with the Line Segment tool are Live, and similarly to Live Shapes, they have many editable attributes after they are drawn. Next, you’ll create a line with the Line Segment tool. This line will become a leg of the bear.

  1. Press and hold on the Ellipse tool (ellipse_tool.jpg) in the toolbar, and select the Line Segment tool (sp_linesegmenttool_lg_n.jpg).

  2. In an empty area of the artboard, press and drag in any direction to draw a line. Don’t release the mouse button yet.

  3. As you drag, press the Shift key to constrain the line to a multiple of 45 degrees. Notice the length and angle in the measurement label next to the pointer as you drag. Drag directly to the right until the line is around 0.5 inches in length. Release the mouse button and then the key.

Editing a line

Now you’ll change the color of, rotate, and change the stroke weight of the line.

  1. Click the Stroke color box in the Properties panel, and make sure that the Swatches option (fill-color.jpg) is selected in the panel that appears. Select the same brown color as the body of the bear.

    Since this is a leg, and a bear leg is not horizontal, it needs to be rotated. Yes, you could have drawn it that way, but then we wouldn’t explore rotating lines!

  2. With the line selected, change the stroke weight to 90 pt in the Properties panel to the right of the document.

  3. With the new line selected, move the pointer just off the right end. When the pointer changes to a rotate arrow (rotate_arrow_text.jpg), press and drag up until you see an angle of 90° in the measurement label next to the pointer. That will make the line vertical.

  4. Choose View > Fit Artboard In Window.

  5. Select the Selection tool (selection_tool.jpg) in the toolbar, and drag the line by the center point to make it a leg for the bear.

    f0095-03.jpg

    It’s a little short—so let’s make it longer. For the following figures, I moved the belly shape that was below the bear out of the way.

  6. Drag the end of the line to make the leg longer.

  7. Make a copy by Option-dragging (macOS) or Alt-dragging (Windows) the line to where the other leg should be. Release the mouse button and then the key.

Creating polygons

Using the Polygon tool (polygon_tool.jpg), you can create shapes with multiple straight sides. By default, the Polygon tool draws hexagons (six-sided shapes). What’s different about polygons is that they are drawn from the center. Polygons are also Live Shapes, which means attributes such as size, rotation, number of sides, and more remain editable after you create them.

Now you’ll create several polygons to make the claws of the bear.

  1. Press and hold the Line Segment tool (sp_linesegmenttool_lg_n.jpg) in the toolbar, and select the Polygon tool (polygon_tool.jpg).

  2. Choose View > Smart Guides to turn them off.

  3. Choose Select > Deselect.

  4. Press the letter D on your keyboard to apply the default of a white fill and a black, 1-pt stroke. Otherwise, the stroke will be a rather large 90 point!

  5. Move the pointer into an empty area of the artboard. Drag to the right to draw a polygon. As you drag, press the Shift key to straighten the shape. Release the mouse button and then the key.

    Notice that you didn’t see the gray measurement label (the tool tip), since it’s part of the Smart Guides that you turned off. Smart Guides can be helpful in certain situations, such as when more precision is necessary—maybe you want to know how large the shape is—and can be toggled on and off when needed.

  6. Click the Fill color box (color_none.jpg) in the Properties panel, make sure that the Swatches option (fill-color.jpg) is selected, and change the color to a lighter brown.

  7. Change the Stroke Weight in the Properties panel to 0 (zero).

  8. Choose View > Smart Guides to turn them back on.

    Now you’ll make it look more like a claw by turning the shape into a triangle.

  9. With the Polygon tool still selected, drag the little side widget (polygon-widget.jpg) on the right side of the bounding box up to change the number of sides to 3—making a triangle.

    f0096-02.jpg
  10. Choose File > Save.

Editing a polygon

Now you’ll change the size of the polygon and create a nail from it.

  1. Select the Selection tool (selection_tool.jpg) in the toolbar.

  2. Drag the polygon to the bottom of one of the legs. See the figure for where.

  3. Zoom in to the claw shape by pressing Command and + (macOS) or Ctrl and + (Windows) a few times.

    f0097-01.jpg
  4. To make it smaller, press the Shift key and drag a corner to change the width and height proportionally (together). When it looks like the size of a proper claw, release the mouse button and then the key.

    f0097-02.jpg

    With the polygon shape now created, you’ll round one of the corners so the claw is a little less sharp. We need to round only one of the corners, so you will select the corner you want to round.

    With the Selection tool selected, a polygon shows only a single Live Corner widget, so you can’t round just one corner with the Selection tool. To round only one corner, you will use the Direct Selection tool.

  5. Select the Direct Selection tool in the toolbar. Click the Live Corners widget (corner_widget.jpg) in the corner showing in the figure.

    f0097-03.jpg
  6. Drag the selected Live Corners widgets toward the center of the triangle to round the one corner a little.

  7. Select the Selection tool (selection_tool.jpg) and drag the triangle into position like you see in the figure.

    f0098-01.jpg
  8. To make a copy, choose Edit > Copy and then Edit > Paste In Front.

    A copy is placed directly on top of the original.

  9. Drag it into place on the other leg, like you see in the figure. You may need to zoom out.

    f0098-02.jpg

Creating a star

Next, you’ll use the Star tool (star_tool.jpg) to create a star that will become the tail of the bear. The Star tool also creates Live Shapes, so editing the star after the fact is made easy.

  1. Press and hold the Polygon tool (polygon_tool.jpg) in the toolbar, and select the Star tool (star_tool.jpg).

  2. In an empty area of the artboard, drag to make a star. As you drag, press Shift to straighten it. Drag until the measurement label shows a width of about 1 inch. Release the mouse button and then the key.

    f0098-03.jpg
  3. To change the number of points on the star, drag the Side widget down to increase the number to nine.

    f0098-04.jpg
  4. To make the arms shorter, drag the Radius 1 widget toward the center.

  5. Click the Fill color box (brown-fill.jpg) in the Properties panel, make sure that the Swatches option (fill-color.jpg) is selected, and change the color to a darker brown.

  6. Drag it into position, as you see in the figure.

  7. Click the Arrange button in the Properties panel and choose Send To Back to send the star behind the rest of the bear.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.