ComfyUI  >  Nodes  >  Comfyroll Studio >  🟡 CR Draw Shape

ComfyUI Node: 🟡 CR Draw Shape

Class Name

CR Draw Shape

Category
🧩 Comfyroll Studio/👾 Graphics/🟣 Shape
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

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

🟡 CR Draw Shape Description

Create various geometric shapes in AI-generated artwork with versatile drawing functions for circles, squares, triangles, and more.

🟡 CR Draw Shape:

The CR Draw Shape node is designed to help you create various geometric shapes within your AI-generated artwork. This node provides a versatile set of drawing functions that allow you to add shapes like circles, ovals, diamonds, squares, triangles, hexagons, octagons, crosses, quarter circles, half circles, and starbursts to your images. By using this node, you can enhance your designs with precise and customizable shapes, making your artwork more dynamic and visually appealing. The main goal of this node is to offer a straightforward way to incorporate geometric patterns into your creative projects, giving you the flexibility to adjust parameters such as size, aspect ratio, and color to suit your artistic vision.

🟡 CR Draw Shape Input Parameters:

draw

This parameter represents the drawing context or canvas where the shapes will be rendered. It is essential for the node to know where to draw the shapes, and it typically comes from an image or a similar drawable surface.

center_x

The x-coordinate of the center point where the shape will be drawn. This parameter determines the horizontal positioning of the shape on the canvas. The value should be within the width of the canvas.

center_y

The y-coordinate of the center point where the shape will be drawn. This parameter determines the vertical positioning of the shape on the canvas. The value should be within the height of the canvas.

size

This parameter defines the overall size of the shape. It impacts the dimensions of the shape, making it larger or smaller. The value should be a positive number, with higher values resulting in larger shapes.

aspect_ratio

The aspect ratio parameter adjusts the proportional relationship between the width and height of the shape. For example, an aspect ratio of 1 means the shape is equally wide and tall, while an aspect ratio of 2 means the shape is twice as tall as it is wide. This parameter allows for the creation of elongated or compressed shapes.

color

This parameter specifies the color of the shape. It can be defined using standard color codes or names, and it determines the fill color of the shape. The color should be chosen to match the desired aesthetic of your artwork.

🟡 CR Draw Shape Output Parameters:

None

The CR Draw Shape node does not produce any direct output parameters. Instead, it modifies the provided drawing context by adding the specified shapes to it. The result is an updated canvas with the newly drawn shapes.

🟡 CR Draw Shape Usage Tips:

  • Experiment with different sizes and aspect ratios to create unique and interesting shapes that enhance your artwork.
  • Use contrasting colors for the shapes to make them stand out against the background or other elements in your design.
  • Combine multiple shapes in a single drawing context to create complex patterns and designs.

🟡 CR Draw Shape Common Errors and Solutions:

"Invalid size parameter"

  • Explanation: The size parameter must be a positive number.
  • Solution: Ensure that the size value is greater than zero.

"Invalid aspect ratio"

  • Explanation: The aspect ratio must be a positive number.
  • Solution: Check that the aspect ratio is correctly set to a positive value.

"Color not recognized"

  • Explanation: The color parameter must be a valid color code or name.
  • Solution: Verify that the color value is correctly formatted and recognized by the drawing context.

"Coordinates out of bounds"

  • Explanation: The center_x or center_y coordinates are outside the drawable area.
  • Solution: Adjust the coordinates to ensure they fall within the dimensions of the canvas.

🟡 CR Draw Shape Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
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.