ComfyUI > Nodes > ComfyUI-MingNodes > IC-Light Light Shape

ComfyUI Node: IC-Light Light Shape

Class Name

LightShapeNode

Category
MingNodes/Image Process
Author
mingsky (Account age: 79days)
Extension
ComfyUI-MingNodes
Latest Updated
2024-10-18
Github Stars
0.19K

How to Install ComfyUI-MingNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-MingNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MingNodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

IC-Light Light Shape Description

Versatile geometric shape creation and manipulation tool for image processing, offering customization options and visual effects.

IC-Light Light Shape:

The LightShapeNode is a versatile tool designed for creating and manipulating geometric shapes within an image processing workflow. It allows you to draw various shapes such as circles, stars, crosses, and more, directly onto an image or a blank canvas. This node is particularly useful for artists and designers who want to add custom shapes to their compositions, offering a range of customization options including size, position, rotation, and color. The node can work with a base image or generate a new one, providing flexibility in how shapes are integrated into your projects. By adjusting parameters like opacity and blur, you can achieve different visual effects, making this node a powerful addition to any image processing toolkit.

IC-Light Light Shape Input Parameters:

wide

The wide parameter specifies the width of the canvas or the base image where the shape will be drawn. It determines the horizontal dimension of the output image. The value should be a positive integer, with no specific minimum or maximum provided, but it should be within the limits of your system's memory capacity.

height

The height parameter defines the vertical dimension of the canvas or base image. Similar to wide, it should be a positive integer, ensuring the image fits within your system's capabilities. This parameter, along with wide, sets the overall size of the output image.

shape

The shape parameter determines the type of geometric shape to be drawn. Options include circle, semicircle, quarter_circle, ellipse, square, triangle, cross, star, and radial. Each shape has unique characteristics and can be used to create different visual effects.

X_offset

The X_offset parameter adjusts the horizontal position of the shape on the canvas. It allows you to move the shape left or right from the center, with positive values shifting it to the right and negative values to the left. This parameter is crucial for precise placement of shapes.

Y_offset

The Y_offset parameter controls the vertical position of the shape on the canvas. Positive values move the shape downward, while negative values move it upward. This parameter, in conjunction with X_offset, provides full control over the shape's placement.

scale

The scale parameter affects the size of the shape relative to its default dimensions. A value of 1.0 means the shape is drawn at its original size, while values greater than 1.0 enlarge the shape and values less than 1.0 reduce its size. This parameter is useful for resizing shapes without altering the canvas size.

rotation

The rotation parameter specifies the angle in degrees to rotate the shape. It allows for creative orientation of shapes, with 0 degrees representing no rotation. Positive values rotate the shape clockwise, while negative values rotate it counterclockwise.

opacity

The opacity parameter controls the transparency level of the shape, with a range from 0.0 (completely transparent) to 1.0 (completely opaque). This parameter is essential for blending shapes with the background or other elements in the image.

blur_radius

The blur_radius parameter applies a Gaussian blur to the shape, softening its edges. A value of 0 means no blur, while higher values increase the blur effect. This parameter is useful for creating softer, more diffused shapes.

background_color

The background_color parameter sets the color of the canvas or the area surrounding the shape. It is specified in hexadecimal format (e.g., #FFFFFF for white). This parameter is important for ensuring the shape stands out against the desired background.

shape_color

The shape_color parameter defines the fill color of the shape, also specified in hexadecimal format. This parameter is crucial for achieving the desired visual impact and contrast with the background.

base_image

The base_image parameter allows you to provide an existing image onto which the shape will be drawn. If not provided, a new image is created based on the wide and height parameters. This parameter offers flexibility in integrating shapes into existing compositions.

IC-Light Light Shape Output Parameters:

image

The image output parameter is the final image generated by the node, containing the drawn shape(s) with all specified customizations. This output is crucial as it represents the visual result of all input parameters and can be used in further processing or as a final artwork.

IC-Light Light Shape Usage Tips:

  • Experiment with different shape options to create unique designs and patterns.
  • Use opacity and blur_radius to blend shapes seamlessly into your compositions, creating depth and texture.
  • Adjust X_offset and Y_offset to layer multiple shapes creatively within the same image.

IC-Light Light Shape Common Errors and Solutions:

"Invalid shape type"

  • Explanation: This error occurs when an unsupported shape type is specified in the shape parameter.
  • Solution: Ensure that the shape parameter is set to one of the supported types: circle, semicircle, quarter_circle, ellipse, square, triangle, cross, star, or radial.

"Image size too large"

  • Explanation: This error indicates that the specified wide and height parameters exceed the system's memory capacity.
  • Solution: Reduce the values of wide and height to fit within your system's memory limits.

"Invalid color format"

  • Explanation: This error occurs when the background_color or shape_color is not in the correct hexadecimal format.
  • Solution: Ensure that colors are specified in the correct hexadecimal format, such as #RRGGBB.

IC-Light Light Shape Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MingNodes
RunComfy

© Copyright 2024 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 Playground, enabling artists to harness the latest AI tools to create incredible art.