16#include "../../Utils/Signals/FunctionGenerator.h"
Defines the base Effect class for applying transformations or effects to pixel groups.
Abstract base class for applying visual effects to pixel groups.
A class to generate various waveform functions with customizable parameters.
Interface for managing and interacting with a collection of pixels.
Implements a magnetic distortion effect for pixel groups.
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.
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.