20 lines
379 B
C++
20 lines
379 B
C++
#ifndef LINEARCOLORSMOOTHING_H
|
|
#define LINEARCOLORSMOOTHING_H
|
|
|
|
#include <QVector>
|
|
#include <QColor>
|
|
|
|
class LinearColorSmoothing
|
|
{
|
|
public:
|
|
explicit LinearColorSmoothing(double smoothingFactor = 0.1);
|
|
|
|
QVector<QColor> smooth(const QVector<QColor>& newColors);
|
|
|
|
private:
|
|
double _smoothingFactor;
|
|
QVector<QColor> _previousColors;
|
|
};
|
|
|
|
#endif // LINEARCOLORSMOOTHING_H
|