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

ComfyUI Node: Grid Pattern (Purz)

Class Name

PurzGridPattern

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

Grid Pattern (Purz) Description

Generates customizable solid, dashed, or dotted grid patterns for artistic projects.

Grid Pattern (Purz):

The PurzGridPattern node is designed to generate visually appealing grid patterns that can be customized to suit various artistic needs. This node allows you to create solid, dashed, or dotted grid patterns, providing flexibility in design and style. It is particularly useful for artists looking to incorporate structured patterns into their work, whether for backgrounds, textures, or as part of a larger composition. The node's primary goal is to offer a straightforward yet powerful tool for generating grid patterns with customizable dimensions, colors, and styles, making it an essential component for AI artists seeking to enhance their creative projects with precision and ease.

Grid Pattern (Purz) Input Parameters:

width

The width parameter determines the width of the generated grid pattern in pixels. It allows you to specify the horizontal size of the pattern, with a minimum value of 64 pixels and a maximum of 4096 pixels. The default value is set to 512 pixels, and adjustments can be made in increments of 8 pixels. This parameter is crucial for defining the overall size of the pattern and ensuring it fits the intended design space.

height

The height parameter specifies the height of the grid pattern in pixels, allowing you to control the vertical size of the pattern. Similar to the width parameter, it ranges from a minimum of 64 pixels to a maximum of 4096 pixels, with a default value of 512 pixels and adjustable in steps of 8 pixels. This parameter is essential for tailoring the pattern to the desired aspect ratio and design requirements.

grid_size

The grid_size parameter defines the size of each grid cell in the pattern. It ranges from a minimum of 8 pixels to a maximum of 256 pixels, with a default value of 32 pixels and adjustable in increments of 8 pixels. This parameter impacts the density and scale of the grid, allowing you to create patterns with varying levels of detail and complexity.

line_width

The line_width parameter controls the thickness of the grid lines in pixels. It has a minimum value of 1 pixel and a maximum of 20 pixels, with a default setting of 2 pixels. This parameter affects the visual prominence of the grid lines, enabling you to create subtle or bold patterns depending on the desired aesthetic.

background_color

The background_color parameter allows you to set the color of the grid pattern's background using a hexadecimal color code. The default color is white (#FFFFFF). This parameter is important for ensuring the grid pattern complements the overall color scheme of your design.

line_color

The line_color parameter specifies the color of the grid lines using a hexadecimal color code. The default color is black (#000000). This parameter is crucial for defining the contrast and visibility of the grid lines against the background.

style

The style parameter lets you choose the style of the grid lines, with options including "solid," "dashed," and "dotted." The default style is "solid." This parameter provides creative flexibility, allowing you to experiment with different line styles to achieve the desired visual effect.

batch_size

The batch_size parameter determines the number of grid pattern images to generate in a single batch. It ranges from a minimum of 1 to a maximum of 16, with a default value of 1. This parameter is useful for generating multiple variations of the pattern simultaneously, saving time and effort in the creative process.

Grid Pattern (Purz) Output Parameters:

image

The image output parameter represents the generated grid pattern as an image file. This output is the final result of the node's execution, providing a visual representation of the grid pattern based on the specified input parameters. The image can be used directly in your projects or further processed to suit your artistic needs.

Grid Pattern (Purz) Usage Tips:

  • Experiment with different grid_size and line_width combinations to achieve unique visual effects and textures.
  • Use contrasting background_color and line_color values to enhance the visibility and impact of the grid pattern.
  • Try different style options to add variety and interest to your designs, especially when creating patterns for backgrounds or overlays.

Grid Pattern (Purz) Common Errors and Solutions:

Invalid color code

  • Explanation: This error occurs when the background_color or line_color parameter is set to an invalid hexadecimal color code.
  • Solution: Ensure that the color codes are in the correct format, starting with a # followed by six hexadecimal digits (e.g., #FFFFFF for white).

Exceeded maximum dimensions

  • Explanation: This error arises when the width or height parameter exceeds the maximum allowed value of 4096 pixels.
  • Solution: Adjust the width and height parameters to be within the allowed range of 64 to 4096 pixels.

Unsupported style option

  • Explanation: This error occurs if an unsupported value is provided for the style parameter.
  • Solution: Ensure that the style parameter is set to one of the supported options: "solid," "dashed," or "dotted."

Grid 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.