ComfyUI > Nodes > ComfyUI-Purz > Gradient Pattern (Purz)

ComfyUI Node: Gradient Pattern (Purz)

Class Name

PurzGradientPattern

Category
Purz/Patterns/Basic
Author
purzbeats (Account age: 1545days)
Extension
ComfyUI-Purz
Latest Updated
2026-02-06
Github Stars
0.02K

How to Install ComfyUI-Purz

Install this extension via the ComfyUI Manager by searching for ComfyUI-Purz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Purz 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

Gradient Pattern (Purz) Description

Generates diverse gradient patterns for backgrounds, textures, and artistic elements in AI art.

Gradient Pattern (Purz):

The PurzGradientPattern node is designed to generate visually appealing gradient patterns, offering a versatile tool for creating backgrounds, textures, or artistic elements in your AI art projects. This node allows you to create various types of gradients, including linear, radial, diagonal, and corner gradients, each providing a unique visual effect. By blending two colors smoothly across a specified area, the node helps you achieve a seamless transition between hues, enhancing the depth and aesthetic appeal of your designs. Whether you're aiming for a subtle background or a striking visual statement, the PurzGradientPattern node provides the flexibility and control needed to tailor the gradient to your specific artistic vision.

Gradient Pattern (Purz) Input Parameters:

width

The width parameter determines the horizontal dimension of the generated gradient pattern. It defines how wide the pattern will be, allowing you to adjust the size to fit your specific needs. The minimum value is 64, the maximum is 4096, and the default is 512. Adjusting the width can impact the resolution and detail of the gradient, with larger values providing more space for a smoother transition between colors.

height

The height parameter specifies the vertical dimension of the gradient pattern. Similar to the width, it controls the size of the pattern in the vertical direction. The minimum value is 64, the maximum is 4096, and the default is 512. By modifying the height, you can influence the aspect ratio and overall appearance of the gradient, ensuring it complements your design requirements.

gradient_type

The gradient_type parameter allows you to choose the style of gradient you wish to create. Options include "linear," "radial," "diagonal," and "corner," with "linear" as the default. Each type offers a distinct visual effect: linear gradients transition smoothly in a straight line, radial gradients emanate from a central point, diagonal gradients blend along a diagonal axis, and corner gradients transition from one corner to the opposite. Selecting the appropriate type can significantly affect the mood and focus of your artwork.

direction

The direction parameter is applicable when the gradient_type is set to "linear." It determines the orientation of the gradient, with options "horizontal" and "vertical," and "horizontal" as the default. This parameter influences the flow of color transition, allowing you to align the gradient with the design's composition and enhance its visual harmony.

color1

The color1 parameter sets the starting color of the gradient. It is defined as a string representing a color code, with the default being "#000000" (black). This color serves as one endpoint of the gradient, and its selection can impact the overall tone and contrast of the pattern.

color2

The color2 parameter defines the ending color of the gradient, also represented as a string color code, with the default being "#FFFFFF" (white). This color forms the other endpoint of the gradient, and its interaction with color1 creates the gradient effect. Choosing complementary or contrasting colors can enhance the visual impact of the gradient.

batch_size

The batch_size parameter specifies the number of gradient patterns to generate in one batch. The minimum value is 1, the maximum is 16, and the default is 1. This parameter is useful for creating multiple variations of a gradient pattern simultaneously, allowing for efficient experimentation and selection of the best result for your project.

Gradient Pattern (Purz) Output Parameters:

image

The image output parameter provides the generated gradient pattern as an image. This output is the visual representation of the gradient based on the specified input parameters. It can be used directly in your projects as a background, texture, or any other artistic element, offering a seamless and customizable gradient effect that enhances the visual appeal of your designs.

Gradient Pattern (Purz) Usage Tips:

  • Experiment with different gradient_type options to find the style that best suits your design needs, as each type offers a unique visual effect.
  • Use complementary colors for color1 and color2 to create a harmonious gradient, or opt for contrasting colors to make the gradient more striking and attention-grabbing.
  • Adjust the width and height parameters to match the resolution requirements of your project, ensuring the gradient pattern fits seamlessly into your design.

Gradient Pattern (Purz) Common Errors and Solutions:

Invalid color code

  • Explanation: The color code provided for color1 or color2 is not in a valid format.
  • Solution: Ensure that the color codes are in the correct hexadecimal format, such as "#RRGGBB".

Batch size out of range

  • Explanation: The batch_size parameter is set to a value outside the allowed range.
  • Solution: Adjust the batch_size to be within the range of 1 to 16.

Dimension out of range

  • Explanation: The width or height parameter is set to a value outside the allowed range.
  • Solution: Ensure that both width and height are within the range of 64 to 4096.

Gradient Pattern (Purz) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Purz
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.