Visit ComfyUI Online for ready-to-use ComfyUI environment
Create tiling masks for images with customizable patterns, blending modes, feathering, and inner radius control.
The djzTilingV2
node is designed to create a tiling mask for images, which is particularly useful in digital art and design applications where seamless patterns or textures are required. This node allows you to generate masks that can be used to control the visibility or blending of different image regions, based on a specified tiling mode. The node supports various tiling modes, such as horizontal, vertical, and both, enabling you to customize the pattern's orientation. Additionally, it offers features like feathering, which smooths the transition between masked and unmasked areas, and an inner radius setting that defines a central region to remain unaffected by the mask. These capabilities make djzTilingV2
a versatile tool for artists looking to create intricate and visually appealing designs with ease.
The image
parameter is the input image on which the tiling mask will be applied. It serves as the base for generating the mask, and its dimensions are used to calculate the center and maximum distance for the tiling effect. The image should be in a format that the node can process, typically a multi-dimensional array representing pixel data.
The tiling_mode
parameter determines the orientation of the tiling effect. It can be set to "xy" for both horizontal and vertical tiling, "x" for horizontal only, or "y" for vertical only. This parameter significantly impacts the pattern's direction and how the mask is applied across the image.
The feathering_strength
parameter controls the intensity of the feathering effect, which smooths the transition between masked and unmasked areas. A higher value results in a more gradual transition, while a lower value creates a sharper edge. The default value is typically 1.0, with a range that can be adjusted to suit the desired effect.
The feathering_curve
parameter specifies the type of curve used to apply the feathering effect. Common options include "linear" and other curve types that define how the transition is smoothed. This parameter allows for further customization of the mask's edge softness.
The invert_mask
parameter is a boolean option that, when enabled, inverts the mask's effect. This means areas that would typically be masked become unmasked and vice versa. It provides flexibility in how the mask is applied, allowing for creative control over the final output.
The inner_radius_percent
parameter defines the size of the central region that remains unaffected by the mask, expressed as a percentage of the maximum distance. This allows you to preserve a portion of the image while applying the tiling effect to the surrounding areas. The default value is often set to 50.0, but it can be adjusted to change the size of the unaffected region.
The preview_mask
parameter is a boolean option that, when enabled, allows you to preview the generated mask before applying it to the image. This feature is useful for ensuring the mask meets your expectations and making adjustments as needed.
The mask_array
is the primary output of the djzTilingV2
node. It is a two-dimensional array representing the generated mask, where each value indicates the level of masking applied to the corresponding pixel in the input image. A value of 0 typically represents a fully masked area, while a value of 1 indicates no masking. This output can be used in further processing steps, such as blending or compositing images.
tiling_mode
settings to achieve various pattern orientations and effects, depending on your artistic goals.feathering_strength
and feathering_curve
parameters to fine-tune the softness of the mask's edges, creating either sharp or smooth transitions as desired.inner_radius_percent
parameter to control the size of the unaffected central region, allowing you to focus the tiling effect on specific areas of the image.tiling_mode
parameter was set to an unsupported value.tiling_mode
is set to one of the supported options: "xy", "x", or "y".feathering_curve
parameter was set to an unrecognized curve type.feathering_curve
is set to a valid option, such as "linear", and adjust if necessary.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.