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

LayerFilter: ChannelShake

Documentation for LayerFilter: ChannelShake Node

Overview

The LayerFilter: ChannelShake node is a component of the ComfyUI_LayerStyle library. This node is designed to manipulate images by shifting the channels (Red, Green, Blue) in a specified manner. The effect created by this manipulation can introduce dynamic and artistic variations to the image, useful in a variety of creative contexts such as graphic design, digital art, and photo editing.

Functionality

This node performs 'channel shaking' on an image. Channel shaking involves shifting the RGB channels of an image based on specified parameters, altering the alignment of colors to create a visually striking effect. Users can control the distance and angle of the shake, as well as the channel order.

Input Parameters

  1. Image

    • Type: Image
    • Description: This is the input image to which the channel shake effect will be applied.
  2. Distance

    • Type: Integer
    • Defaults and Limits: Default is 20. Minimum is 1 and maximum is 999.
    • Description: This parameter determines the shift distance of the channels on the image. A greater distance results in a more pronounced shake effect.
  3. Angle

    • Type: Float
    • Defaults and Limits: Default is 40. Minimum is -360 and maximum is 360.
    • Description: This parameter specifies the angle of the shift in degrees. The angle determines the direction of channel movement.
  4. Mode

    • Type: List of Strings (Channel Modes)
    • Options: RGB, RBG, BGR, BRG, GBR, GRB
    • Description: This parameter allows users to define the order of channels when applying the shift effect. Different modes can create distinct visual impacts by changing the positions and interactions of the colors.

Output

  1. Image
    • Type: Image
    • Description: The output is the transformed image after applying the channel shake effect.

Usage in ComfyUI Workflows

  • The ChannelShake node can be employed in creative workflows where visual modification of an image's color dynamics is desired.
  • Artists and designers can utilize this effect to enhance images with unique color distortions or create dynamic backgrounds for digital content.
  • It can be combined with other nodes to build an intricate image transformation pipeline, offering diverse artistic possibilities in ComfyUI.

Special Features and Considerations

  • Channel Mode Flexibility: The ability to specify different channel orders allows for a broad range of visual outcomes.
  • Customization: The flexibility in adjusting both distance and angle provides users with precise control over the effect's intensity and direction.
  • Image Transformation: The node processes each image independently. This can be useful when applying consistent effects across multiple images in batch processing within a ComfyUI workflow.

This node is a powerful tool for those involved in digital art and design, enabling nuanced control over color interactions within images.