ComfyUI > Nodes > ComfyUI_XISER_Nodes > Multi Point Gradient

ComfyUI Node: Multi Point Gradient

Class Name

XIS_MultiPointGradient

Category
XISER_Nodes/Visual_Editing
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_XISER_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_XISER_Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Multi Point Gradient Description

Generates gradient images using control points with multiple interpolation methods.

Multi Point Gradient:

The XIS_MultiPointGradient node is a powerful tool designed to generate gradient images based on a set of control points. This node is particularly useful for creating smooth transitions between colors in an image, leveraging multiple interpolation methods to achieve the desired effect. By defining control points with specific colors and positions, you can create complex gradients that smoothly blend from one color to another. The node supports various interpolation techniques, including inverse distance weighting (IDW), radial, Voronoi, and linear interpolation, each offering unique ways to influence the gradient's appearance. This flexibility allows you to tailor the gradient to suit specific artistic needs, making it an essential tool for AI artists looking to add depth and color variation to their creations.

Multi Point Gradient Input Parameters:

width

The width parameter specifies the width of the output gradient image. It determines the horizontal resolution of the generated image, affecting the level of detail and smoothness of the gradient. The minimum value is 1, and there is no explicit maximum value, but it should be set according to the desired output size and available computational resources.

height

The height parameter defines the height of the output gradient image. Similar to the width, it controls the vertical resolution, impacting the gradient's detail and smoothness. The minimum value is 1, and like the width, it should be chosen based on the desired output size and available resources.

interpolation

The interpolation parameter determines the method used to calculate the gradient between control points. Options include "idw" (inverse distance weighting), "radial", "voronoi", "idw(soft)", and "linear". Each method offers a different approach to blending colors, with "linear" requiring at least two control points. The choice of interpolation affects the gradient's appearance and should be selected based on the desired artistic effect.

gradient_canvas

The gradient_canvas parameter is a dictionary containing the control points used to generate the gradient. Each control point includes coordinates (x, y), a color in hexadecimal format, and an optional influence value that affects the point's impact on the gradient. If no control points are provided, default points are used to ensure a basic gradient is generated. This parameter is crucial for defining the gradient's structure and color transitions.

Multi Point Gradient Output Parameters:

image_tensor

The image_tensor is the primary output of the XIS_MultiPointGradient node. It is a tensor representation of the generated gradient image, with pixel values normalized between 0 and 1. This output can be used directly in further image processing or rendering tasks, providing a smooth and visually appealing gradient based on the specified control points and interpolation method.

Multi Point Gradient Usage Tips:

  • Experiment with different interpolation methods to achieve various artistic effects. For instance, use "voronoi" for a more segmented look or "idw" for smoother transitions.
  • Adjust the influence values of control points to fine-tune their impact on the gradient, allowing for more precise control over color blending.

Multi Point Gradient Common Errors and Solutions:

"No control points provided"

  • Explanation: This error occurs when the gradient_canvas parameter does not contain any control points, which are necessary for generating a gradient.
  • Solution: Ensure that the gradient_canvas parameter includes at least one control point with defined coordinates and color. If using linear interpolation, provide at least two control points.

"Invalid interpolation method"

  • Explanation: This error arises when an unsupported interpolation method is specified in the interpolation parameter.
  • Solution: Verify that the interpolation method is one of the supported options: "idw", "radial", "voronoi", "idw(soft)", or "linear". Correct any typos or unsupported values.

Multi Point Gradient Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_XISER_Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Multi Point Gradient