LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerUtility: ColorImage

ComfyUI LayerUtility: ColorImage Node Documentation

Overview

The LayerUtility: ColorImage node is part of the ComfyUI LayerStyle module. This node is designed to generate a solid color image with user-defined attributes such as dimensions and color. It allows users to easily create blank canvas images that can be used as a base layer in image manipulation workflows or as a background.

Functionality

The primary function of the LayerUtility: ColorImage node is to create a new image of specified dimensions and color. This image can then be used in various image editing and processing workflows.

Inputs

The LayerUtility: ColorImage node accepts the following inputs:

  1. Width

    • Description: The width of the image.
    • Type: Integer
    • Default Value: 512
    • Constraints: Minimum value is 4, and the maximum value is 99,999. The width increases in steps of 1.
  2. Height

    • Description: The height of the image.
    • Type: Integer
    • Default Value: 512
    • Constraints: Minimum value is 4, and the maximum value is 99,999. The height increases in steps of 1.
  3. Color

    • Description: The fill color of the image. It is specified as a hex color code.
    • Type: String
    • Default Value: "#000000" (black)

Outputs

The LayerUtility: ColorImage node produces the following output:

  • Image
    • Description: An image created based on the specified width, height, and color.
    • Type: IMAGE

Use in ComfyUI Workflows

The LayerUtility: ColorImage node can be incorporated into ComfyUI workflows in several ways:

  • Background Creation: It can function as a base layer by providing a solid colored background onto which other image elements can be layered.
  • Starting Point for Image Composition: This node can be used to generate a starting canvas for creating composite images, where additional layers or image manipulations can be added.
  • Color Testing: Users can experiment with different colors and dimensions quickly to see how they interplay with other elements in a design or UI.

Special Features and Considerations

  • Wide Range of Dimensions: The node supports a vast range of dimensions from a tiny 4x4 up to large 99,999x99,999, providing flexibility in creating images of various sizes to suit different needs.
  • Hex Color Input: The color input uses hex codes, offering precise control over the exact shade of color used.
  • Simple Yet Powerful: Despite being simple in function, the ability to create a blank canvas of any size and color makes this node a powerful tool in image processing workflows.

This node is particularly beneficial for users who need to generate simple, solid-colored images that can be integrated into larger image processing tasks or for preparing background layers for complex compositions. Its simplicity makes it easy to use, while its flexibility in size and color provides ample creative freedom.