Bird
Raised Fist0
Figmabi_tool~10 mins

Pen tool for custom paths in Figma - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start drawing a new path with the Pen tool.

Figma
penTool.[1]()
Drag options to blanks, or click blank then click option'
AstartPath
BbeginPath
CinitPath
DcreatePath
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startPath' instead of 'beginPath' causes an error.
Confusing initialization methods with path methods.
2fill in blank
medium

Complete the code to add a straight line segment to the current path.

Figma
penTool.lineTo([1], [2])
Drag options to blanks, or click blank then click option'
Ay
Bx
Cpoint
Dcoordinate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'y' for both arguments causes incorrect drawing.
Passing a single point object instead of separate x and y.
3fill in blank
hard

Fix the error in the code to close the current path.

Figma
penTool.[1]()
Drag options to blanks, or click blank then click option'
AclosePath
BendPath
CfinishPath
DcompletePath
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'endPath' which is not a valid method.
Confusing finishing methods with closing methods.
4fill in blank
hard

Fill in the blank to create a cubic Bezier curve segment.

Figma
penTool.[1](controlPoint1, controlPoint2, endPoint)
Drag options to blanks, or click blank then click option'
AcurveTo
BquadraticCurveTo
CbezierCurveTo
DcubicCurveTo
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'quadraticCurveTo' which only takes one control point.
Confusing method names that don't exist.
5fill in blank
hard

Fill all three blanks to move the pen to a new starting point without drawing.

Figma
penTool.[1]([2], [3])
Drag options to blanks, or click blank then click option'
AmoveTo
Bx
Cy
DstartPoint
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startPoint' which is not a method.
Swapping x and y coordinates.

Practice

(1/5)
1. What does the Pen tool in Figma primarily allow you to do?
easy
A. Draw custom shapes by placing points and curves
B. Automatically generate charts from data
C. Import images into your design
D. Create text layers with different fonts

Solution

  1. Step 1: Identify the Pen tool's primary function

    The Pen tool is used to create custom shapes by placing points and curves. Options B, C, and D describe other Figma features unrelated to the Pen tool.
  2. Final Answer:

    Draw custom shapes by placing points and curves -> Option A
  3. Quick Check:

    Pen tool = Draw shapes [OK]
Hint: Pen tool = points + curves for shapes [OK]
Common Mistakes:
  • Confusing Pen tool with text or image tools
  • Thinking Pen tool auto-generates charts
  • Assuming Pen tool only draws straight lines
2. Which action creates a curved point when using the Pen tool in Figma?
easy
A. Click once on the canvas
B. Right-click on the canvas
C. Click and drag on the canvas
D. Double-click on the canvas

Solution

  1. Step 1: Determine how to create curved points with the Pen tool

    Clicking once places a straight point; clicking and dragging creates a curved point. Double-click and right-click do not create curves with the Pen tool.
  2. Final Answer:

    Click and drag on the canvas -> Option C
  3. Quick Check:

    Click+drag = curve point [OK]
Hint: Drag while clicking to curve points [OK]
Common Mistakes:
  • Clicking once expecting a curve
  • Using double-click instead of drag
  • Right-clicking to create points
3. What will happen if you use the Pen tool to place points at (0,0), (100,0), (100,100), and then close the path back to (0,0)?
medium
A. A square shape will be created
B. A triangle shape will be created
C. An open line will be drawn
D. A circle shape will be created

Solution

  1. Step 1: Plot the points to determine the closed shape

    The points form corners at (0,0), (100,0), (100,100), and back to (0,0). This is three points forming a closed triangle shape, not a square.
  2. Final Answer:

    A triangle shape will be created -> Option B
  3. Quick Check:

    Closed path with three points = triangle [OK]
Hint: Close path with three points = triangle [OK]
Common Mistakes:
  • Thinking three points make a square
  • Assuming open path creates a shape
  • Confusing square with triangle
4. You tried to create a curved path with the Pen tool but the curve looks sharp and not smooth. What is the most likely mistake?
medium
A. You closed the path before adding curves
B. You placed points too far apart
C. You used the wrong color for the path
D. You clicked instead of clicking and dragging to create curve handles

Solution

  1. Step 1: Diagnose the cause of sharp curves

    Curves require clicking and dragging to create handles; clicking alone makes sharp corners. Closing path, color choice, or point distance do not affect curve smoothness directly.
  2. Final Answer:

    You clicked instead of clicking and dragging to create curve handles -> Option D
  3. Quick Check:

    Click vs drag for curves = smoothness [OK]
Hint: Drag to curve, click only = sharp corner [OK]
Common Mistakes:
  • Ignoring drag for curves
  • Blaming color or path closure
  • Thinking point distance affects curve shape
5. You want to create a custom star shape using the Pen tool with smooth curves on each point. Which sequence of actions is best?
hard
A. Click to place each star point, then click and drag to curve each segment, finally close the path
B. Click and drag to place all points, then leave the path open
C. Click to place points and leave the path open for a star shape
D. Use the rectangle tool and then convert it to a star

Solution

  1. Step 1: Outline the correct sequence for a smooth curved star

    Click to place each star point, then click and drag to curve each segment smoothly, finally close the path to complete the shape.
  2. Final Answer:

    Click to place each star point, then click and drag to curve each segment, finally close the path -> Option A
  3. Quick Check:

    Click + drag + close path = smooth star [OK]
Hint: Click points, drag curves, close path for shapes [OK]
Common Mistakes:
  • Leaving path open for closed shapes
  • Not dragging to create curves
  • Using wrong tools for star shape