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

LayerStyle: InnerGlow

LayerStyle: InnerGlow Node Documentation

Overview

The "LayerStyle: InnerGlow" node is part of the ComfyUI_LayerStyle nodes, designed to add an inner glow effect to layer images within the ComfyUI workflows. This node allows users to customize the glow effect by adjusting various parameters such as color blending modes, opacity, brightness level, glow range, blur intensity, and color choices.

Functionality

The primary function of the "LayerStyle: InnerGlow" node is to enhance images by applying a customizable inner glow effect. It's suited for tasks that require adding a glow or highlight around the elements of an image layer, thus giving designers the flexibility to create more vivid and stylized graphics.

Inputs

The "LayerStyle: InnerGlow" node accepts the following inputs:

  1. Background Image (Required): An image to serve as the backdrop where the inner glow effect will be applied.

  2. Layer Image (Required): The primary image layer to which the inner glow effect will be applied.

  3. Invert Mask (Optional): A boolean value to determine whether the mask should be inverted. Default is True.

  4. Blend Mode (Required): A selection of blending modes that control how the glow is applied over the layer image. Options include:

    • Screen
    • Add
    • Lighter
    • Normal
    • Multiply
    • Subtract
    • Difference
    • Darker
    • Color Burn
    • Color Dodge
    • Linear Burn
    • Linear Dodge
    • Overlay
    • Soft Light
    • Hard Light
    • Vivid Light
    • Pin Light
    • Linear Light
    • Hard Mix
  5. Opacity (Required): The transparency level of the glow, defined by an integer ranging from 0 to 100, with a default of 100.

  6. Brightness (Required): Defines the iteration level for brightness enhancement, with a range between 2 to 20, defaulting at 5.

  7. Glow Range (Required): Determines the expansion level for the glow, with a wide range from -9999 to 9999, default set to 48.

  8. Blur (Required): The amount of blur applied to the glow, ranging from 0 to 9999, with a default of 25.

  9. Light Color (Required): Specifies the center color of the light source for the glow, set by default to #FFBF30.

  10. Glow Color (Required): The outer color of the glow effect, defaulting to #FE0000.

  11. Layer Mask (Optional): A mask specifying which areas of the layer image should have the glow effect applied.

Outputs

  • Output Image: The processed image with the inner glow effect applied. This output is in IMAGE format ready for further processing or final output within a UI workflow.

Use in ComfyUI Workflows

The "LayerStyle: InnerGlow" node can be integrated into ComfyUI workflows to achieve various artistic effects. It's particularly useful in:

  • Enhancing graphical elements by adding a luminous backdrop.
  • Creating focus or highlight areas by adding eye-catching glow effects.
  • Designing comps with illuminated text or shapes for advertisements, posters, or digital art projects.

By utilizing this node, designers can efficiently control and customize how the inner glow complements their designs, adding a dynamic flair to UI components.

Special Features & Considerations

  • Extensive Customization Options: The node offers multiple parameters for users to fine-tune, making it suitable for diverse design needs and applications.

  • Mask Flexibility: Users can provide a mask to pinpoint the exact areas of the image where the glow effect should be applied, allowing for targeted enhancements.

  • Warning Notifications: It provides warnings when mismatches occur in mask sizes relative to the layer images, thus ensuring the user is aware of potential processing issues.

  • Blend Mode Selection: With a multitude of blending modes, users have the power to select the visual style that best fits their creative vision.

This node serves as a versatile tool for designers looking to integrate glow effects into their visual projects seamlessly.