ComfyUI > Nodes > Jovimetrix Composition Nodes > SHAPE GEN (JOV) ✨

ComfyUI Node: SHAPE GEN (JOV) ✨

Class Name

SHAPE GEN (JOV) ✨

Category
JOVIMETRIX 🔺🟩🔵/CREATE
Author
amorano (Account age: 5221days)
Extension
Jovimetrix Composition Nodes
Latest Updated
2024-07-03
Github Stars
0.17K

How to Install Jovimetrix Composition Nodes

Install this extension via the ComfyUI Manager by searching for Jovimetrix Composition Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Jovimetrix Composition Nodes 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

SHAPE GEN (JOV) ✨ Description

Shape Generation node creates customizable images of circles, squares, rectangles, ellipses, and polygons with adjustable size, color, position, rotation, and edge blur.

SHAPE GEN (JOV) ✨:

The Shape Generation node creates images representing various shapes such as circles, squares, rectangles, ellipses, and polygons. These shapes can be customized by adjusting parameters such as size, color, position, rotation angle, and edge blur. The node provides options to specify the shape type, the number of sides for polygons, the RGBA color value for the main shape, and the RGBA color value for the background. Additionally, you can control the width and height of the output images, the position offset, and the amount of edge blur applied to the shapes.

SHAPE GEN (JOV) ✨ Input Parameters:

SHAPE

Specifies the type of shape to generate. Options include various shapes such as circles, squares, rectangles, ellipses, and polygons. The default shape is a circle.

SIDES

Defines the number of sides for polygon shapes. This parameter is only applicable when the shape type is set to a polygon. The minimum value is 3, the maximum is 100, and the default is 3.

RGBA_A

Sets the RGBA color value for the main shape. This parameter allows you to define the color and transparency of the shape. The default value is (255, 255, 255, 255), representing a fully opaque white color.

MATTE

Sets the RGBA color value for the background. This parameter allows you to define the color and transparency of the background. The default value is (0, 0, 0, 255), representing a fully opaque black color.

WH

Specifies the width and height of the output image. The default value is (256, 256), and the minimum value is defined by the constant MIN_IMAGE_SIZE.

XY

Defines the position offset of the shape within the image. The default value is (0, 0), with a step of 0.01 and a precision of 4 decimal places.

ANGLE

Sets the rotation angle of the shape. The value ranges from -180 to 180 degrees, with a default of 0 degrees. The step is 0.01, and the precision is 4 decimal places.

SIZE

Specifies the size of the shape as a vector. The default value is (1.0, 1.0), with a step of 0.01 and a precision of 4 decimal places.

EDGE

Controls the amount of edge blur applied to the shape. This parameter helps in creating soft edges for the shape.

SHAPE GEN (JOV) ✨ Output Parameters:

IMAGE

The generated image containing the specified shape with the applied customizations. This output is an image tensor that can be used in further image processing or directly as a visual element.

SHAPE GEN (JOV) ✨ Usage Tips:

  • Experiment with different shape types and parameters to create unique and visually appealing designs.
  • Use the RGBA_A and MATTE parameters to create shapes with varying levels of transparency and background colors.
  • Adjust the SIZE and ANGLE parameters to fit the shape perfectly within your design context.
  • Utilize the EDGE parameter to create soft-edged shapes for a more blended appearance.

SHAPE GEN (JOV) ✨ Common Errors and Solutions:

Invalid shape type

  • Explanation: The specified shape type is not recognized.
  • Solution: Ensure that the shape type is one of the supported options such as circle, square, rectangle, ellipse, or polygon.

Sides out of range

  • Explanation: The number of sides for a polygon is outside the allowed range.
  • Solution: Set the SIDES parameter to a value between 3 and 100.

Invalid RGBA value

  • Explanation: The RGBA color value is not correctly formatted.
  • Solution: Ensure that the RGBA_A and MATTE parameters are tuples of four integers, each ranging from 0 to 255.

Image size too small

  • Explanation: The specified width and height are below the minimum allowed size.
  • Solution: Increase the WH parameter values to meet or exceed the MIN_IMAGE_SIZE constant.

SHAPE GEN (JOV) ✨ Related Nodes

Go back to the extension to check out more related nodes.
Jovimetrix Composition Nodes
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.