FD4B: Use vector edit mode to modify shapes
Create the squish shape
For this next shape, we’re going to explore using vector edit mode to modify a vector path.
- Add a
46
X48
rectangle inside the Shape 4 frame. - Center it inside the frame.
- To enter vector edit mode:
- Select the rectangle and press Enter
- Double-click on the rectangle
- Hover your cursor over the center of the shape's top path. Figma will display a new point in the center of the path.
- Click on it to add a new point to the path.
We want to move this point towards the center of the shape. There are a few ways to move points:
- Click and drag the point with your cursor
- Use your arrow keys to nudge it
- (Recommended for this lesson) Change the position values in the right sidebar
Let's walk through the third option together:
- Select the point you just added.
- In the Y field in the Position section of the right sidebar, type
+15
. - Press Enter.
The point will move 15 pixels toward the center of the shape.
To achieve the bowtie look we're going for, we need to do the same for the shape's bottom path:
- Hover your cursor over the center of the shape's bottom path and click to add a new point
- Select the point and type
-15
in the Y field, then press Enter. - Press Enter to exit vector edit mode.
- Change the shape's Corner radius to
8
. - Rename the frame to
Squish
.
Using equations to adjust values
For this lesson, we recommended using math in the position field to move the vector point. In Figma Design, you can use math equations to change the values of some properties like position, dimension, and rotation. This is an extremely helpful workflow as it is precise and flexible for even larger calculations. Learn more about using equations to adjust values.
If the values we used seem a little backward, it's because unlike a traditional coordinate system, the Y-axis in Figma Design—and other design tools—is flipped, meaning an increase moves the node downward instead of upward. So increasing the Y value +15 moved the top point 15 pixels downwards and decreasing the Y value -15 moved the bottom point 15 pixels upwards.