Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate versatile cosine wave patterns for artistic projects with adjustable phase, amplitude, translations, and frame control.
The CosWave node is designed to generate a cosine wave pattern, which can be used in various creative and artistic applications. This node allows you to manipulate the wave's phase, amplitude, and translations along the x and y axes, as well as the current frame, to create dynamic and visually appealing effects. By adjusting these parameters, you can control the shape and behavior of the cosine wave, making it a versatile tool for adding rhythmic and oscillatory elements to your projects. The primary goal of the CosWave node is to provide a simple yet powerful way to incorporate cosine waveforms into your artistic creations, enhancing the visual complexity and movement within your work.
The phase
parameter controls the period of the cosine wave, determining how many frames it takes for the wave to complete one full cycle. A higher phase value results in a longer wave period, while a lower value shortens the period. The minimum value is 0.0, the maximum is 9999.0, and the default is 1.0.
The amplitude
parameter sets the height of the cosine wave, affecting the wave's peak and trough values. A higher amplitude results in a taller wave, while a lower amplitude produces a shorter wave. The minimum value is 0.0, the maximum is 9999.0, and the default is 0.5.
The x_translation
parameter shifts the cosine wave horizontally along the x-axis. This translation allows you to move the wave left or right, effectively changing the starting point of the wave. The minimum value is 0.0, the maximum is 9999.0, and the default is 0.0.
The y_translation
parameter shifts the cosine wave vertically along the y-axis. This translation allows you to move the wave up or down, adjusting the baseline of the wave. The minimum value is 0.0, the maximum is 9999.0, and the default is 0.5.
The current_frame
parameter specifies the current frame number in the animation or sequence. This parameter is used to calculate the wave's position at a given point in time, allowing for dynamic and time-based wave generation. The minimum value is 0.0, the maximum is 9999.0, and the default is 1.0.
The FLOAT
output represents the calculated value of the cosine wave at the specified frame, taking into account the phase, amplitude, and translations. This value can be used to drive other parameters or visual elements in your project, providing a smooth and continuous wave pattern.
The INT
output is the integer representation of the FLOAT
output. This value can be useful for applications that require discrete or quantized values, such as triggering events or controlling step-based animations.
phase
values to create waves with varying frequencies and periods, adding diversity to your animations.amplitude
to control the intensity of the wave effect, making it more or less pronounced depending on your artistic needs.x_translation
and y_translation
to position the wave precisely within your composition, ensuring it aligns with other visual elements.current_frame
parameter to create dynamic and evolving wave patterns that change over time, adding movement and interest to your work.phase
value is not zero to avoid division by zero errors.© Copyright 2024 RunComfy. All Rights Reserved.