0
0
Figmabi_tool~10 mins

Boolean operations (union, subtract, intersect, exclude) in Figma - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to perform a union of two shapes in Figma.

Figma
const unionShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });
Drag options to blanks, or click blank then click option'
AINTERSECT
BSUBTRACT
CEXCLUDE
DUNION
Attempts:
3 left
💡 Hint
Common Mistakes
Using SUBTRACT instead of UNION removes one shape from the other.
INTERSECT keeps only overlapping parts, not the full union.
2fill in blank
medium

Complete the code to subtract shape2 from shape1 in Figma.

Figma
const subtractShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });
Drag options to blanks, or click blank then click option'
AEXCLUDE
BSUBTRACT
CINTERSECT
DUNION
Attempts:
3 left
💡 Hint
Common Mistakes
Using UNION adds shapes instead of subtracting.
INTERSECT keeps only overlapping parts, not subtraction.
3fill in blank
hard

Fix the error in the code to intersect two shapes in Figma.

Figma
const intersectShape = figma.combineShapes({ shapes: [shape1, shape2], operation: '[1]' });
Drag options to blanks, or click blank then click option'
AINTERSECT
BUNION
CSUBTRACT
DEXCLUDE
Attempts:
3 left
💡 Hint
Common Mistakes
Using UNION keeps all areas, not just the overlap.
SUBTRACT removes one shape from another, not intersection.
4fill in blank
hard

Fill both blanks to exclude overlapping areas between two shapes in Figma.

Figma
const excludeShape = figma.combineShapes({ shapes: [[1], [2]], operation: 'EXCLUDE' });
Drag options to blanks, or click blank then click option'
Ashape1
Bshape2
Cshape3
Dshape4
Attempts:
3 left
💡 Hint
Common Mistakes
Using shapes not involved in the operation.
Mixing up the order of shapes does not affect EXCLUDE but use correct shapes.
5fill in blank
hard

Fill all three blanks to create a combined shape using union, subtract, and intersect operations in Figma.

Figma
const combinedShape = figma.combineShapes({ shapes: [shapeA, shapeB], operation: '[1]' });
const subtractedShape = figma.combineShapes({ shapes: [shapeC, shapeD], operation: '[2]' });
const intersectedShape = figma.combineShapes({ shapes: [shapeE, shapeF], operation: '[3]' });
Drag options to blanks, or click blank then click option'
AUNION
BSUBTRACT
CINTERSECT
DEXCLUDE
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up operation names causes wrong shape results.
Using EXCLUDE instead of INTERSECT for overlapping areas.