Visit ComfyUI Online for ready-to-use ComfyUI environment
Add customizable stroke effects to image layers for emphasis and visual appeal, with control over color, width, opacity, and more.
The LayerStyle: Stroke node is designed to add a stroke or outline effect to a given image layer, enhancing its visual appeal and making it stand out against the background. This node is particularly useful for creating emphasis on specific elements within your artwork, such as text or shapes, by surrounding them with a customizable border. The stroke effect can be finely tuned with various parameters, allowing you to control the color, width, opacity, and blending mode of the stroke. Additionally, you can apply effects like blur to soften the edges of the stroke, and adjust the stroke's growth or shrinkage to achieve the desired look. This node is a powerful tool for AI artists looking to add professional and polished touches to their digital creations.
The background_image parameter is the base image over which the stroke effect will be applied. This image serves as the canvas for the stroke and is required for the node to function.
The layer_image parameter is the image layer to which the stroke effect will be applied. This image will be outlined with the stroke, making it stand out against the background_image.
The invert_mask parameter is a boolean option that determines whether the mask should be inverted. By default, this is set to True. Inverting the mask can be useful for reversing the areas where the stroke is applied.
The blend_mode parameter allows you to select the blending mode for the stroke. This determines how the stroke will interact with the background_image and layer_image, affecting the overall visual result.
The opacity parameter controls the transparency of the stroke. It accepts integer values ranging from 0 to 100, with a default value of 100. A lower opacity makes the stroke more transparent, while a higher opacity makes it more opaque.
The stroke_grow parameter adjusts the growth or shrinkage of the stroke. It accepts integer values ranging from -999 to 999, with a default value of 0. Positive values will expand the stroke, while negative values will contract it.
The stroke_width parameter sets the width of the stroke. It accepts integer values ranging from 0 to 999, with a default value of 8. This parameter determines how thick or thin the stroke will appear.
The blur parameter applies a blur effect to the stroke, softening its edges. It accepts integer values ranging from 0 to 100, with a default value of 0. Higher values will increase the blur intensity.
The stroke_color parameter specifies the color of the stroke. It accepts a string value representing a color in hexadecimal format, with a default value of "#FF0000" (red). This allows you to customize the stroke color to match your design.
The layer_mask parameter is an optional mask that can be applied to the layer_image. This mask can be used to define specific areas where the stroke should be applied or excluded.
The image output parameter is the final image with the applied stroke effect. This image combines the background_image, layer_image, and the stroke, resulting in a visually enhanced output that highlights the stroked elements.
© Copyright 2024 RunComfy. All Rights Reserved.