Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate slanted cut polygonal PNG masks for artistic and design purposes, with diagonal cut options.
The CreatePolygonPNGMask
node is designed to generate a polygonal mask in PNG format. This node allows you to create a slanted cut mask on an image, which can be useful for various artistic and design purposes. The primary function of this node is to create a mask with a diagonal cut, either from right to left or left to right, depending on the settings. Although the node is noted to have some limitations and may not work perfectly in all scenarios, it can still be a fun tool to experiment with and potentially create unique visual effects.
This parameter specifies the width of the image for which the polygon mask will be created. The width determines the horizontal dimension of the resulting PNG mask. Ensure that the value is appropriate for your intended output size.
This parameter specifies the height of the image for which the polygon mask will be created. The height determines the vertical dimension of the resulting PNG mask. Ensure that the value is appropriate for your intended output size.
This is a boolean trigger that changes the direction of the slanting cut. By default, the cut is from right to left (/
). When this parameter is enabled, the cut direction changes to left to right (\
). This allows for flexibility in the design of the mask.
This parameter allows you to select the method of the slanting cut. Currently, only the Diagonal
option is available, and it may not work perfectly. This parameter is intended to provide different styles of cuts in the future.
This parameter is intended to control the layout of the mask, but it is noted that it does not work properly. It is included for potential future functionality and experimentation.
This output is the generated PNG image containing the polygon mask. It can be used directly in your projects or further processed as needed.
This output is a list that contains the color information of all the PNG blocks created by the mask. This can be useful for understanding the color distribution and for further processing or analysis.
This output is a list that contains the rectangle information of all the PNG blocks created by the mask. This can be useful for understanding the geometric distribution and for further processing or analysis.
This output provides debug information that can help you understand the internal workings of the node and troubleshoot any issues that may arise during its use.
Backslash
parameter to see how changing the direction of the cut affects your design.Width
and Height
parameters to match the dimensions of your target image for better integration.Type
and Layout
parameters are not fully functional, you can still experiment with them to see if they produce any interesting effects.Width
or Height
parameters are set to invalid values.Width
and Height
are set to positive integer values that match the dimensions of your target image.Type
parameter.Type
parameter is set to Diagonal
, as it is currently the only supported option.Layout
parameter does not function as intended.Layout
parameter until it is updated in future versions.© Copyright 2024 RunComfy. All Rights Reserved.