Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate gradient images from specified coordinates for smooth color transitions, ideal for backgrounds and artistic effects.
CreateGradientFromCoords is a powerful node designed to generate gradient images based on specified coordinates. This node allows you to create smooth transitions between colors across an image, which can be particularly useful for backgrounds, overlays, or artistic effects. By defining the start and end points of the gradient, as well as the colors and other parameters, you can achieve a wide range of visual effects. The node calculates the gradient direction and blends the colors accordingly, providing a high degree of control over the final image. This makes it an essential tool for AI artists looking to add dynamic and visually appealing elements to their creations.
The coordinates
parameter is a string that specifies the start and end points of the gradient. It should be formatted as a JSON string with two coordinate objects, each containing x
and y
values. This parameter is crucial as it determines the direction and length of the gradient. The input must be provided, and it is forced to be an input.
The frame_width
parameter defines the width of the generated image in pixels. It accepts integer values ranging from 16 to 4096, with a default value of 512. Adjusting this parameter will change the width of the gradient image, allowing you to fit it to different canvas sizes.
The frame_height
parameter specifies the height of the generated image in pixels. Similar to frame_width
, it accepts integer values between 16 and 4096, with a default value of 512. This parameter allows you to control the height of the gradient image to match your design requirements.
The start_color
parameter sets the initial color of the gradient. It accepts a string representing the color, with a default value of 'white'. This color will be used at the starting coordinate of the gradient, blending towards the end_color
.
The end_color
parameter defines the final color of the gradient. It accepts a string representing the color, with a default value of 'black'. This color will be used at the ending coordinate of the gradient, blending from the start_color
.
The multiplier
parameter is a float that adjusts the intensity of the gradient. It accepts values ranging from 0.01 to 100.0, with a default value of 1.0. This parameter allows you to fine-tune the gradient's transition, making it more or less pronounced.
The image
output parameter is the resulting gradient image generated by the node. This image is created based on the specified coordinates, colors, and other parameters. It can be used directly in your projects or further processed to achieve the desired visual effects.
coordinates
parameter with start and end points that have the same y
value but different x
values.start_color
and end_color
values to achieve unique color transitions that enhance your artwork.multiplier
parameter to adjust the gradient's intensity, making it more subtle or more dramatic depending on your needs.coordinates
parameter must be a valid JSON string with two coordinate objects.coordinates
string is correctly formatted as JSON, with proper use of double quotes and valid x
and y
values.frame_width
and frame_height
parameters must be within the specified range of 16 to 4096. - Solution: Adjust the frame_width
and frame_height
values to be within the acceptable range.start_color
and end_color
parameters must be valid color strings.start_color
and end_color
parameters.© Copyright 2024 RunComfy. All Rights Reserved.