Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate smooth color transitions in images with adjustable dimensions, direction, intensity, and patterns for artistic effects.
The Gradient RGB image node is designed to generate a smooth transition of colors across an image, creating a gradient effect. This node allows you to specify the dimensions of the image and the direction of the gradient, whether horizontal or circular. It also provides the flexibility to adjust the gradient's intensity and apply various patterns to achieve different visual effects. This node is particularly useful for creating backgrounds, overlays, or any artistic elements that require a gradual blend of colors. By manipulating the gradient parameters, you can achieve a wide range of aesthetic outcomes, enhancing the visual appeal of your AI-generated art.
The width parameter specifies the width of the generated gradient image in pixels. It determines the horizontal dimension of the image. The value should be a positive integer representing the number of pixels.
The height parameter specifies the height of the generated gradient image in pixels. It determines the vertical dimension of the image. The value should be a positive integer representing the number of pixels.
The batch_size parameter defines the number of gradient images to generate in a single batch. This is useful for generating multiple images with the same gradient settings. The default value is 1, and it should be a positive integer.
These parameters specify the starting color of the gradient in RGB format. Each parameter should be an integer between 0 and 255, representing the red, green, and blue components of the starting color, respectively.
These parameters specify the ending color of the gradient in RGB format. Each parameter should be an integer between 0 and 255, representing the red, green, and blue components of the ending color, respectively.
The axis parameter determines the direction of the gradient. It can be set to "horizontal" for a left-to-right gradient or "circular" for a radial gradient. This parameter affects how the colors transition across the image.
The pattern_value parameter allows you to apply different patterns to the gradient. It modifies the gradient's appearance by introducing variations such as linear or sine patterns. The value should be a float that influences the pattern's intensity.
The power_to parameter adjusts the intensity of the gradient by raising it to the specified power. This can create more pronounced or subtle transitions. The value should be a positive float, with higher values resulting in steeper gradients.
The reverse_power parameter is a boolean that, when set to True, reverses the effect of the power_to parameter. This can be used to invert the gradient's intensity adjustments.
The mask parameter allows you to apply a mask to the gradient, controlling which parts of the image the gradient affects. The mask should be a tensor with the same dimensions as the gradient image. If provided, the gradient will be multiplied by the mask.
The rgb_image output is a tensor representing the generated gradient image in RGB format. Each pixel in the image contains the blended colors based on the specified gradient parameters. This output can be used directly in your AI art projects to create visually appealing backgrounds or overlays.
The mask_gradient output is a tensor representing the gradient mask applied to the image. This mask shows the intensity of the gradient across the image and can be used for further processing or as a reference for other artistic effects.
© Copyright 2024 RunComfy. All Rights Reserved.