ComfyUI > Nodes > ComfyUI-gen2 > Gen2 Checkerboard

ComfyUI Node: Gen2 Checkerboard

Class Name

Gen2_Checkerboard

Category
Gen2/Utils
Author
petmycat (Account age: 774days)
Extension
ComfyUI-gen2
Latest Updated
2026-03-06
Github Stars
0.02K

How to Install ComfyUI-gen2

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

Gen2 Checkerboard Description

Generates customizable checkerboard patterns for artistic and design applications.

Gen2 Checkerboard:

The Gen2_Checkerboard node is designed to generate a checkerboard pattern image with customizable dimensions and block sizes. This node is particularly useful for creating visual patterns that can be used in various artistic and design applications. By allowing you to specify the width, height, and block size of the checkerboard, it provides flexibility in creating patterns that can range from fine-grained to large-scale designs. The checkerboard pattern is generated in a way that each block is a square of a specified size, alternating between two colors, typically black and white. This node is a valuable tool for artists and designers looking to incorporate geometric patterns into their work, offering a straightforward method to produce high-quality checkerboard images.

Gen2 Checkerboard Input Parameters:

width

The width parameter defines the width of the checkerboard image in pixels. It determines how wide the final image will be, allowing you to create images that fit specific dimensions or aspect ratios. The minimum value for this parameter is 1, the maximum is 8192, and the default value is 512. Adjusting the width can impact the overall appearance of the checkerboard pattern, especially when combined with different block sizes.

height

The height parameter specifies the height of the checkerboard image in pixels. Similar to the width, it controls the vertical dimension of the image, enabling you to tailor the image size to your needs. The minimum value is 1, the maximum is 8192, and the default value is 512. The height, in conjunction with the width, defines the overall size of the checkerboard, influencing how the pattern is displayed.

block_size

The block_size parameter determines the size of each square block in the checkerboard pattern, measured in pixels. This parameter is crucial for defining the granularity of the pattern; smaller block sizes result in more intricate patterns, while larger block sizes create bolder designs. The minimum value is 1, the maximum is 4096, and the default value is 64. Adjusting the block size allows you to customize the visual impact of the checkerboard pattern.

Gen2 Checkerboard Output Parameters:

image

The image output parameter represents the generated checkerboard pattern as an image. This output is a 3-channel RGB image formatted as a PyTorch tensor, which is compatible with ComfyUI's image processing pipeline. The image is returned as a float32 tensor with dimensions corresponding to the specified width and height, and it can be used directly in further processing or visualization tasks. The checkerboard pattern is visually distinct, with alternating blocks of color, making it suitable for a variety of artistic and design applications.

Gen2 Checkerboard Usage Tips:

  • To create a high-resolution checkerboard pattern, increase both the width and height parameters while keeping the block_size relatively small to maintain detail.
  • For a bold and simple pattern, use a larger block_size with moderate width and height values to create a striking visual effect.
  • Experiment with different block_size values to achieve the desired level of detail and complexity in your checkerboard pattern.

Gen2 Checkerboard Common Errors and Solutions:

ValueError: Width or height is out of range

  • Explanation: This error occurs when the specified width or height is outside the allowed range of 1 to 8192. - Solution: Ensure that both the width and height parameters are set within the valid range.

ValueError: Block size is out of range

  • Explanation: This error is raised when the block_size parameter is set outside the permissible range of 1 to 4096.
  • Solution: Adjust the block_size to be within the specified range to avoid this error.

Gen2 Checkerboard Related Nodes

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

Gen2 Checkerboard