Visit ComfyUI Online for ready-to-use ComfyUI environment
Create smooth color transitions in images with customizable gradients for backgrounds, overlays, and artistic effects.
The Image Generate Gradient node is designed to create smooth transitions between colors in an image, forming a gradient effect. This node is particularly useful for generating backgrounds, overlays, or artistic effects where a gradual blend of colors is desired. By specifying the dimensions, direction, and color stops, you can customize the gradient to fit your creative needs. The node allows for precise control over the gradient's appearance, making it a versatile tool for AI artists looking to enhance their visual compositions with seamless color transitions.
The width parameter defines the width of the generated gradient image. It accepts integer values ranging from 64 to 4096, with a default value of 512. Adjusting the width will change the horizontal size of the gradient, allowing you to create gradients that fit various aspect ratios and design requirements.
The height parameter specifies the height of the gradient image. Similar to the width parameter, it accepts integer values between 64 and 4096, with a default value of 512. Modifying the height will alter the vertical size of the gradient, enabling you to tailor the gradient to different dimensions.
The direction parameter determines the orientation of the gradient. It offers two options: "horizontal" and "vertical". A horizontal gradient transitions colors from left to right, while a vertical gradient transitions colors from top to bottom. This parameter allows you to control the flow of the gradient based on your design needs.
The tolerance parameter sets the tolerance level for color transitions in the gradient. It accepts integer values from 0 to 255, with a default value of 0. Increasing the tolerance can create smoother transitions between colors, while a lower tolerance can result in more distinct color bands. This parameter helps fine-tune the gradient's appearance.
The gradient_stops parameter is a string that defines the color stops for the gradient. Each stop is specified as a percentage followed by the RGB values of the color, separated by commas. For example, "0:255,0,0\n25:255,255,255\n50:0,255,0\n75:0,0,255" creates a gradient with red at 0%, white at 25%, green at 50%, and blue at 75%. This parameter allows for detailed customization of the gradient's color transitions.
The output of the Image Generate Gradient node is an image that contains the generated gradient. This image can be used as a background, overlay, or any other visual element in your artwork. The gradient image is created based on the specified input parameters, providing a smooth and customizable color transition.
© Copyright 2024 RunComfy. All Rights Reserved.