Documentation for LayerStyle: OuterGlow Node in ComfyUI
Overview
The LayerStyle: OuterGlow
node is a versatile component within ComfyUI that adds an outer glow effect to images. This node is typically used to enhance visual elements in a design by applying a customizable glow around specified layers or objects, creating a sense of depth and emphasis.
Functionality
The primary function of the LayerStyle: OuterGlow
node is to apply a glow effect around the edges of a provided image layer. The effect includes a gradient of color that emanates outward from the edges of the layer, influenced by various customizable parameters such as color, intensity, and blending mode.
Inputs
Required Inputs
- background_image: An image on which the glow effect will be overlaid. This serves as the canvas for your outer glow effect.
- layer_image: The subject image which will be used to create the glow.
- invert_mask: A boolean parameter determining whether to invert the mask applied to the layer. Default is
True
.
- blend_mode: Specifies the method used to blend the glow with the background 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
, and hard_mix
.
- opacity: An integer value (0-100) that represents the transparency level of the glow effect. Default is 100, which means fully opaque.
- brightness: An integer value (2-20) representing the number of iterations to adjust the glow's brightness. Default is 5.
- glow_range: An integer value (-9999 to 9999) that dictates the spread or size of the glow effect. Default is 48.
- blur: An integer value (0-9999) affecting the blur radius applied to the glow effect, enhancing its softness. Default is 25.
- light_color: A color value, specified as a string (e.g., "#FFBF30"), defining the inner color of the glow.
- glow_color: A color value, specified as a string (e.g., "#FE0000"), defining the outer color of the glow.
Optional Inputs
- layer_mask: A mask to define specific areas of the layer to apply the glow effect. This adds precision and control over which parts of the layer receive the effect.
Outputs
- image: The node outputs an image with the applied outer glow effect, combining the specified layer image, glow parameters, and background.
Usage in ComfyUI Workflows
The LayerStyle: OuterGlow
node can be integrated into various ComfyUI workflows to enhance visual design. It can:
- Highlight specific objects or text within an interface by adding an attractive glow.
- Create visual depth by emphasizing certain UI components against a background.
- Facilitate artistic designs where a layered appearance is desired.
When used creatively, this node can significantly improve the aesthetic appeal of a user interface.
Special Features and Considerations
- Customizable Glow Properties: With the ability to finely adjust attributes like color, opacity, and blend mode, this node offers extensive customization for creating dynamic visual effects.
- Blend Modes: The wide variety of blend modes allows for diverse interaction between the glow and the background, providing unique stylistic possibilities.
- Iterative Brightness: The brightness parameter affords nuanced control over intensity variations within the glow, enabling more realistic or stylized outcomes.
- Scalable Effects: The range of values for glow range and blur allows for subtle to dramatic glow effects, suitable for different project needs.
When employing the LayerStyle: OuterGlow
node, consider the color contrasts and visual coherence of the scene to achieve the best results. Proper tuning of input parameters can transform simple designs into visually compelling interfaces.