Defines the base Effect class for applying transformations or effects to pixel groups.
Provides a generator for common mathematical wave functions.
Effect()
Default constructor for the Effect class.
A class to generate various waveform functions with customizable parameters.
Interface for managing and interacting with a collection of pixels.
FunctionGenerator fGenX
Generator for X-axis warp dynamics.
float amplitude
The strength of the magnetic distortion.
void SetAmplitude(float amplitude)
Sets the amplitude of the magnetic distortion effect.
void SetPosition(Vector2D offset)
Sets the central position of the magnetic effect.
void ApplyEffect(IPixelGroup *pixelGroup) override
Applies the magnetic distortion effect to the given pixel group.
FunctionGenerator fGenWarp
Generator for warp intensity dynamics.
Magnet(float amplitude=0.5f)
Constructs a Magnet effect with a specified amplitude.
FunctionGenerator fGenSize
Generator for field size dynamics.
Vector2D offset
The central offset of the magnetic effect.
FunctionGenerator fGenY
Generator for Y-axis warp dynamics.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.