16#include "../../Utils/Signals/FunctionGenerator.h"
17#include "../../Utils/Math/Vector2D.h"
Defines the base Effect class for applying transformations or effects to pixel groups.
Abstract base class for applying visual effects to pixel groups.
Implements a fisheye distortion effect for pixel groups.
FunctionGenerator fGenX
Controls X-axis displacement.
float amplitude
Amplitude of the distortion effect.
void SetAmplitude(float amplitude)
Sets the amplitude of the distortion.
void SetPosition(Vector2D offset)
Sets the distortion center offset.
void ApplyEffect(IPixelGroup *pixelGroup) override
Applies the fisheye effect to the given pixel group.
FunctionGenerator fGenWarp
Controls warp effect.
FunctionGenerator fGenSize
Controls the size modulation.
Vector2D offset
Offset for the fisheye distortion center.
FunctionGenerator fGenY
Controls Y-axis displacement.
A class to generate various waveform functions with customizable parameters.
Interface for managing and interacting with a collection of pixels.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.