My personal collection of custom ComfyUI composition nodes for making masks and shapes like in Substance Designer.
CREATION
2D Shape Node. Shapes include: Circle Square Rectangle Ellipse Polygon (3-100 sides)
Per Pixel Shader. Allows user function to generate a per pixel result of the supplied Width x Height. It injects $x, $y, $u, $v, $w and $h as variables the user can use in defining said functions.
Constant Node. Set a single RGB value. Useful for masks, overlays and general filtering.
TRANSFORMATION
Transform. Translate, Rotate, Scale, Tile and Invert an Image. All options allow for CROP or WRAPing of the edges.
Invert. Alpha blend an Image’s inverted version. with the original.
Mirror. Flip an Image across the X axis, the Y Axis or both, with independent centers.
HSV Adjustment. Tweak the Hue, Saturation and Value for an Image.
Lumen. Contrast, Gamma and Exposure controls.
Tile. Repeat an image along the X, Y or XY at irregular intervals
FILTERING
A single node with multiple operations:
Blur
Sharpen
Emboss
Find Edges
BLENDING
Blending Node. Takes 2 Image inputs and an alpha value and performs a linear blend (alpha) between both images based on the selected operations. Operations include:
Linear Interpolation
Add
Minimum
Maximum
Multiply
Soft Light
Hard Light
Overlay
Screen
Subtract
Logical AND
Logical OR
Logical XOR
Can make endless numbers of masks for input into ControlNet models like QR Monster. Used in conjunction with a node pack that supports loops you can animate said masks.
Has some heavily inspired ideas from Node packs like:
WAS NODES