> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MaskComposite - ComfyUI Built-in Node Documentation

> Complete documentation for the MaskComposite node in ComfyUI. Learn its inputs, outputs, parameters and usage.

This node specializes in combining two mask inputs through a variety of operations such as addition, subtraction, and logical operations, to produce a new, modified mask. It abstractly handles the manipulation of mask data to achieve complex masking effects, serving as a crucial component in mask-based image editing and processing workflows.

## Inputs

| Parameter     | Description                                                                                                                                                                          | Data Type      |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- |
| `destination` | The primary mask that will be modified based on the operation with the source mask. It plays a central role in the composite operation, acting as the base for modifications.        | MASK           |
| `source`      | The secondary mask that will be used in conjunction with the destination mask to perform the specified operation, influencing the final output mask.                                 | MASK           |
| `x`           | The horizontal offset at which the source mask will be applied to the destination mask, affecting the positioning of the composite result.                                           | INT            |
| `y`           | The vertical offset at which the source mask will be applied to the destination mask, affecting the positioning of the composite result.                                             | INT            |
| `operation`   | Specifies the type of operation to apply between the destination and source masks, such as 'add', 'subtract', or logical operations, determining the nature of the composite effect. | COMBO\[STRING] |

## Outputs

| Parameter | Description                                                                                                                             | Data Type |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `mask`    | The resulting mask after applying the specified operation between the destination and source masks, representing the composite outcome. | MASK      |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/MaskComposite/en.md)
