Bird
Raised Fist0
Figmabi_tool~20 mins

Pen tool for custom paths in Figma - Practice Problems & Coding Challenges

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
Challenge - 5 Problems
🎖️
Pen Tool Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Anchor Points with the Pen Tool

When using the Pen tool in Figma to create a custom path, what does an anchor point represent?

AA fixed point that defines the start or end of a path segment
BA color fill applied to the shape
CA shortcut key to switch tools
DA layer style applied to the path
Attempts:
2 left
💡 Hint

Think about what defines the shape's outline.

dax_lod_result
intermediate
2:00remaining
Calculating Total Length of a Custom Path

You created a custom path with the Pen tool in Figma and exported the coordinates. Which DAX measure correctly calculates the total length of the path assuming you have a table 'PathPoints' with columns 'X' and 'Y' ordered by 'PointOrder'?

Figma
PathPoints = 
DATATABLE(
  "PointOrder", INTEGER,
  "X", FLOAT,
  "Y", FLOAT,
  {
    {1, 0, 0},
    {2, 3, 4},
    {3, 6, 0}
  }
)
ATotalLength = SUMX(PathPoints, SQRT(POWER(PathPoints[X] - EARLIER(PathPoints[X]), 2) + POWER(PathPoints[Y] - EARLIER(PathPoints[Y]), 2)))
BTotalLength = SUMX(PathPoints, VAR PrevX = CALCULATE(MAX(PathPoints[X]), FILTER(PathPoints, PathPoints[PointOrder] = EARLIER(PathPoints[PointOrder]) - 1)) VAR PrevY = CALCULATE(MAX(PathPoints[Y]), FILTER(PathPoints, PathPoints[PointOrder] = EARLIER(PathPoints[PointOrder]) - 1)) RETURN SQRT(POWER(PathPoints[X] - PrevX, 2) + POWER(PathPoints[Y] - PrevY, 2)))
CTotalLength = SUMX(PathPoints, PathPoints[X] + PathPoints[Y])
DTotalLength = COUNTROWS(PathPoints)
Attempts:
2 left
💡 Hint

Think about how to calculate distance between consecutive points.

visualization
advanced
1:30remaining
Best Visualization for Custom Path Data

You have data points from a custom path created with the Pen tool. Which visualization best shows the shape and flow of the path in a BI dashboard?

ABar chart showing X values only
BPie chart of point counts
CScatter plot without connecting lines
DLine chart connecting points in order
Attempts:
2 left
💡 Hint

Think about how to show a continuous shape.

🔧 Formula Fix
advanced
1:30remaining
Debugging a Broken Custom Path Visualization

You created a line chart to show a custom path but the shape looks broken with disconnected segments. What is the most likely cause?

AThe points are not sorted by their order before plotting
BThe color palette is incorrect
CThe data contains duplicate X values
DThe chart type is set to bar chart
Attempts:
2 left
💡 Hint

Think about how the line connects points.

data_modeling
expert
2:30remaining
Modeling Complex Custom Paths with Multiple Segments

You need to model multiple custom paths created with the Pen tool, each with several segments and anchor points. Which data model design best supports efficient querying and visualization?

AOne flat table with only X and Y coordinates
BSeparate tables for Paths, Segments, and Points without relationships
COne table with columns: PathID, SegmentID, PointOrder, X, Y
DMultiple tables with unrelated keys
Attempts:
2 left
💡 Hint

Think about how to organize hierarchical data for paths and segments.

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