Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate gradient images with adjustable parameters for smooth color transitions, ideal for backgrounds and overlays.
The LayerUtility: GradientImage node is designed to generate a gradient image based on specified parameters. This node allows you to create smooth transitions between two colors over a defined width and height, with the ability to adjust the angle of the gradient. This can be particularly useful for creating backgrounds, overlays, or any other graphical elements that require a gradient effect. By providing a simple interface to control the gradient's properties, this node helps you achieve visually appealing results with minimal effort.
The width
parameter defines the width of the gradient image in pixels. It determines how wide the generated image will be. The minimum value is 4, the maximum value is 99999, and the default value is 512. Adjusting this parameter will affect the horizontal size of the gradient.
The height
parameter specifies the height of the gradient image in pixels. It sets the vertical size of the generated image. The minimum value is 4, the maximum value is 99999, and the default value is 512. Changing this parameter will impact the vertical dimension of the gradient.
The angle
parameter controls the angle of the gradient in degrees. It allows you to rotate the gradient direction from -360 to 360 degrees, with a default value of 0. This parameter is useful for creating diagonal or rotated gradient effects.
The start_color
parameter defines the starting color of the gradient. It is specified as a string in hexadecimal format (e.g., #FFFFFF
for white). The default value is #FFFFFF
. This color will appear at the beginning of the gradient transition.
The end_color
parameter sets the ending color of the gradient. Similar to the start_color
, it is specified as a string in hexadecimal format (e.g., #000000
for black). The default value is #000000
. This color will appear at the end of the gradient transition.
The image
output parameter provides the generated gradient image. This image is the result of applying the specified width, height, angle, start color, and end color parameters. The output is an image tensor that can be used in further processing or directly in your artwork.
angle
values to create unique gradient effects, such as diagonal or vertical gradients.start_color
and end_color
values to make the gradient more visually striking.width
and height
parameters to fit the specific dimensions required for your project.start_color
or end_color
parameter is not in the correct hexadecimal format.start_color
and end_color
are specified as strings in the format #RRGGBB
.width
or height
parameter is set outside the allowed range (4 to 99999).width
and height
values to be within the specified range.angle
parameter is set outside the allowed range (-360 to 360).angle
value is within the range of -360 to 360 degrees.© Copyright 2024 RunComfy. All Rights Reserved.