Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 37 ยท Text, Shapes and Effects

Shape Layers, Paths and the Pen Tool

Draw vector shapes in Photoshop, edit them with the Properties panel and Direct Selection tool, combine paths, and learn how Bezier curves work.

Photoshop is mostly a pixel editor, but it also has a full set of vector tools. Vector shapes are described by mathematical paths, so they stay sharp at any size and can be edited point by point. Icons, buttons, badges, frames and dividers are better as shapes than as painted pixels.

Three modes of the shape tools

Press U to pick a shape tool: Rectangle, Rounded Rectangle, Ellipse, Triangle, Polygon, Line and Custom Shape. In the Options bar, a mode menu on the left offers:

  • Shape: creates a shape layer, with a fill and stroke you can change at any time.
  • Path: draws only an outline in the Paths panel, with no pixels. You can turn it into a selection or a mask later.
  • Pixels: paints pixels on the current layer. Avoid it for anything you may want to change.

Choose Shape nearly all the time. Drag to draw, or click once on the canvas and type an exact width and height in the dialog. Hold Shift to constrain proportions, Alt (Option) to draw from the center.

Fill, stroke and the Properties panel

For a shape layer, the Options bar holds Fill, Stroke, stroke width and the stroke type (solid, dashed, dotted, alignment inside/center/outside, caps and corners). Fills can be a solid color, a gradient or a pattern.

The Properties panel (Window > Properties) shows the exact W and H, X and Y position, the rotation, and, for rectangles, the corner radii. Each corner has its own value, and you can link or unlink them. These settings stay live: change the radius from 0 to 24 px and the shape updates without redrawing.

The live corner widget on the canvas also lets you drag a small circle at each corner to round it.

Python Stand-in: corner radius and shape area

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The code shows why a radius larger than half the short side does nothing more: a corner cannot be rounder than a semicircle.

Combining shapes

With a shape layer selected, the Path Operations menu in the Options bar controls how a new shape interacts with the existing path:

  • New Layer: a separate shape layer.
  • Combine Shapes: adds the new area.
  • Subtract Front Shape: cuts the new shape out of the existing one.
  • Intersect Shape Areas: keeps only the overlap.
  • Exclude Overlapping Shapes: keeps everything except the overlap.
  • Merge Shape Components (after you finish): turns the result into a single, clean outline.

A donut is a circle with a smaller circle subtracted. A speech bubble is a rounded rectangle combined with a triangle.

Editing with the selection tools

Use Path Selection (A) to move a whole path and Direct Selection (hidden under the same button) to move individual anchor points and handles. Click a path with the Direct Selection tool to show its anchor points; drag a point to move it. Hold Alt to copy a path while dragging.

You can also convert a shape layer's outline to a selection: Ctrl+click the vector mask thumbnail, or use the Paths panel and Load path as a selection (the dotted circle button).

The Pen tool

The Pen tool (P) draws paths by clicking anchor points:

  • Click adds a corner point with a straight segment to the previous one.
  • Click and drag adds a smooth point. The drag pulls out two handles; their direction and length shape the curve.
  • Close a path by clicking the first point again. Press Enter to finish an open path.
  • Ctrl+click empty canvas to stop drawing, Alt+click a smooth point to remove one handle (make a cusp).

The Freeform Pen draws like a pencil, and Curvature Pen creates smooth curves by simply clicking points. Choose Path or Shape mode before you start.

How the curve works

Each curve segment is a cubic Bezier curve, defined by four points: a start anchor, two handle ends and an end anchor. The curve leaves the start in the direction of its first handle and arrives at the end from the direction of the second.

Python Stand-in: points on a cubic Bezier curve

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

At t = 0 the point sits on the start anchor, at t = 1 on the end anchor, and in between the curve bulges toward the handles but never touches them.

Tips for clean paths

  • Use as few anchor points as possible. Place them at the extremes of curves, not along them.
  • Keep handles horizontal or vertical when the curve passes through a horizontal or vertical extreme.
  • Zoom in and use Shift while dragging to constrain handles to 45 degree steps.
  • A path that feels wrong usually has too many points. Delete some instead of adjusting many.

Custom shapes and libraries

The Custom Shape tool offers a menu of ready-made shapes (arrows, banners, symbols). Load more from Window > Shapes, or save your own: draw a path, then choose Edit > Define Custom Shape. Shapes in the Shapes panel can be dragged onto the canvas directly.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which shape tool mode keeps the fill and stroke editable?

    Shape mode creates a shape layer with live fill and stroke. Path mode draws only an outline, and Pixels paints pixels.
  2. 2. What does Subtract Front Shape do?

    Subtract removes the area of the front (new) shape from the existing shape. Intersect keeps only the overlap.
  3. 3. How do you create a smooth curve point with the Pen tool?

    Dragging while you place an anchor point pulls out its handles, which shapes the curve.
  4. 4. How many control points define one cubic Bezier segment?

    A cubic segment uses a start point, two handle points and an end point: four in total.

Summary

  • Use Shape mode for editable vector fills and strokes; Path mode for outlines only.
  • The Properties panel provides exact size, position and per-corner radii.
  • Path operations build complex shapes from simple ones.
  • The Pen tool draws cubic Bezier curves; fewer anchor points mean cleaner curves.

Next: Layer Styles, Smart Filters and Effects