Defines the base Effect class for applying transformations or effects to pixel groups.
Provides a generator for common mathematical wave functions.
Defines a 2D vector and various related operations.
Effect()
Default constructor for the Effect class.
Fisheye(float amplitude=0.5f)
Constructs a Fisheye effect with a specified amplitude.
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.