Switched fade curve to easeInOutQuad

This commit is contained in:
Olivier Prat 2017-06-13 08:50:50 +02:00
parent 7d58c9a741
commit f3d252ee65

View file

@ -36,7 +36,7 @@ float FadeEffect::computeFadePercent(quint64 startTime) const {
const double INV_FADE_PERIOD = 1.0 / (double)(3 * USECS_PER_SECOND);
double fraction = (double)(usecTimestampNow() - startTime) * INV_FADE_PERIOD;
if (fraction < 1.0) {
fadeAlpha = Interpolate::simpleNonLinearBlend(fraction);
fadeAlpha = Interpolate::easeInOutQuad(fraction);
}
return fadeAlpha;
}