Skip to content

zentrocdot/ComfyUI_Square_Masks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI_Square_Masks

Important

🚧 This documentation is still under construction. Parts of the node are still under development. There may therefore be minor differences between the node itself and the documentation for the node. The documentation is also not yet complete.

Preface

The node in its current form is the result of tests that I carried out with it during the course of the day. I had to change parts of the code again and again.

Motivation

I was looking for a node with the funcionality of this node some time ago and despite an intensive search I couldn't find it. So I programmed it myself based on my experience. From a mathematical point of view, this node was more demanding than the nodes before.

Challenge

It turned out to be a challenge that a source image can be larger than 512 x 512 pixels. In the penultimate version of the node, I had steps in the edges of the mask and the transitions were not sharp.

Node Preview

Preview

Bildschirmfoto vom 2025-02-12 21-13-33

Settings

Settings Itself

The node consists of three important parts, the input and output connectors and the settings.

The settings are

  • sides
  • scale

sides

The sides is the number of sides of a n-gon. It can start with 3 for a triangle and can go up in steps of one. If one goes direction infinity one will get a circle or something which looks like a circle.

scale

With scale one can scale the n-gon up or down.

Example Preview

Bildschirmfoto vom 2025-02-12 21-01-24

Open questions

Even after a few tests, I'm still not sure whether a mask generally has to have a variable size. What I do know is that the programmed procedure works.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages