Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate intricate nested PNG mask images with flexible layout parameters for AI art projects.
The CreateNestedPNGMask
node is designed to generate a nested PNG mask image based on specified dimensions and layout parameters. This node is particularly useful for creating complex, layered mask images that can be used in various AI art projects. By defining the width, height, and other positional parameters, you can create intricate nested rectangles within a PNG image. This node also allows for unlimited expansion in all directions, making it highly flexible for different artistic needs. The primary goal of this node is to provide a robust tool for generating detailed and customizable mask images, which can be used to enhance the depth and complexity of your AI-generated artwork.
The width of the PNG image to be created. This parameter defines the horizontal dimension of the output image. The value should be a positive integer representing the number of pixels. For example, a width of 800 will create an image that is 800 pixels wide.
The height of the PNG image to be created. This parameter defines the vertical dimension of the output image. The value should be a positive integer representing the number of pixels. For example, a height of 600 will create an image that is 600 pixels tall.
The X-coordinate for the starting point of the nested rectangles. This parameter determines the horizontal position where the nesting begins. The value should be a positive integer.
The Y-coordinate for the starting point of the nested rectangles. This parameter determines the vertical position where the nesting begins. The value should be a positive integer.
A boolean parameter that, when enabled, allows the nested rectangles to expand infinitely upwards. This provides flexibility in creating masks that are not confined to a fixed height.
A boolean parameter that, when enabled, allows the nested rectangles to expand infinitely downwards. This provides flexibility in creating masks that are not confined to a fixed height.
A boolean parameter that, when enabled, allows the nested rectangles to expand infinitely to the left. This provides flexibility in creating masks that are not confined to a fixed width.
A boolean parameter that, when enabled, allows the nested rectangles to expand infinitely to the right. This provides flexibility in creating masks that are not confined to a fixed width.
A string parameter that defines the layout pattern for the nested rectangles. The default value is #
. This parameter allows you to specify a custom layout for the nested rectangles, providing additional control over the mask's design.
The generated PNG image containing the nested rectangles. This output is the primary result of the node and can be used directly in your AI art projects.
A list containing the color information of all the nested rectangles within the PNG image. This output is useful for further processing or analysis of the mask's color properties.
A list containing the rectangle information of all the nested rectangles within the PNG image. This output provides detailed positional data for each rectangle, which can be used for additional customization or processing.
A string containing debug information. This output is useful for troubleshooting and understanding the internal workings of the node during execution.
Width
and Height
values to create masks of various sizes that fit your specific project needs.unlimit_top
, unlimit_bottom
, unlimit_left
, and unlimit_right
parameters to create masks that are not confined to a fixed size, allowing for more creative freedom.Layout
parameter to customize the pattern of the nested rectangles, adding unique designs to your masks.Width
or Height
parameters are set to non-positive values.Width
and Height
are positive integers.X
or Y
parameters are set to non-positive values.X
and Y
are positive integers.Layout
parameter is set to an unsupported value.#
, or refer to the documentation for supported patterns.© Copyright 2024 RunComfy. All Rights Reserved.