Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply sine wave distortion effect to images for dynamic, rhythmic transformations with adjustable parameters and directional customization.
The SineWave node is designed to apply a sine wave distortion effect to an image, creating a visually appealing wave-like transformation. This effect can be used to add dynamic and artistic distortions to your images, making them stand out with a unique, rhythmic pattern. The node works by shifting the pixels of the image based on a sine function, which can be adjusted in terms of amplitude and frequency to achieve the desired intensity and repetition of the wave. You can also choose the direction of the wave, either horizontally or vertically, to further customize the effect. This node is particularly useful for creating abstract art, enhancing textures, or adding a creative twist to your visual projects.
The image parameter is the input image to which the sine wave effect will be applied. It should be provided as a tensor, typically representing an image in a batch format. This parameter is essential as it serves as the base on which the sine wave distortion will be performed.
The amplitude parameter controls the height of the sine wave, determining how far the pixels are shifted from their original positions. A higher amplitude results in more pronounced waves, while a lower amplitude creates subtler distortions. The value can range from 0 to 150, with a default of 10. Adjusting this parameter allows you to control the intensity of the wave effect.
The frequency parameter defines the number of wave cycles within the image. A higher frequency results in more waves, creating a denser pattern, while a lower frequency produces fewer, more spread-out waves. The value can range from 0 to 20, with a default of 5. This parameter helps you control the repetition and spacing of the wave effect.
The direction parameter specifies the orientation of the sine wave effect. It can be set to either "horizontal" or "vertical," determining whether the waves will move across the image from left to right or from top to bottom. This option allows you to customize the direction of the distortion to suit your artistic vision.
The output image parameter is the resulting image after the sine wave effect has been applied. It is returned as a tensor, maintaining the same dimensions as the input image but with the added wave distortion. This output can be used directly in your projects or further processed with additional effects.
© Copyright 2024 RunComfy. All Rights Reserved.