Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate smooth black-to-white gradient masks for blending/fading effects in AI art, customizable and animatable.
The CreateGradientMask
node is designed to generate a gradient mask, which transitions smoothly from black to white across the width of the image. This node is particularly useful for creating effects that require a gradual change in intensity, such as blending or fading effects in AI-generated art. The gradient can be customized in terms of its dimensions and can be inverted if needed. By adjusting the number of frames, you can create a sequence of gradient masks that change over time, adding dynamic visual effects to your projects.
The invert
parameter is a boolean option that determines whether the gradient mask should be inverted. When set to True
, the gradient will transition from white to black instead of black to white. This can be useful for creating reverse fading effects. The default value is False
.
The frames
parameter specifies the number of frames or images in the batch. This allows you to create a sequence of gradient masks that change over time. The value must be an integer between 0 and 255, with a default value of 0. Increasing the number of frames can add dynamic visual effects to your project.
The width
parameter defines the width of the gradient mask in pixels. It must be an integer between 16 and 4096, with a default value of 256. Adjusting the width allows you to control the horizontal resolution of the gradient.
The height
parameter defines the height of the gradient mask in pixels. It must be an integer between 16 and 4096, with a default value of 256. Adjusting the height allows you to control the vertical resolution of the gradient.
The MASK
output is a tensor containing the generated gradient mask(s). This output can be used in various image processing tasks where a gradient effect is needed. The mask can be directly applied to images to create smooth transitions or blended effects.
invert
parameter to False
and adjust the frames
parameter to generate a sequence of gradient masks.invert
parameter to True
.width
and height
parameters to match the resolution of the images you are working with to ensure the gradient mask fits perfectly.frames
parameter value is outside the allowed range.frames
parameter is set to an integer between 0 and 255.width
parameter value is outside the allowed range.width
parameter is set to an integer between 16 and 4096.height
parameter value is outside the allowed range.height
parameter is set to an integer between 16 and 4096.invert
parameter is not set to a boolean value.invert
parameter is set to either True
or False
.© Copyright 2024 RunComfy. All Rights Reserved.