}
@Override
public ABackground animate(double pos, ABackground startValue, ABackground endValue) {
if (startValue == null) {
startValue = new ColorBackground(Color.TRANSPARENT);
}
if (endValue == null) {
endValue = new ColorBackground(Color.TRANSPARENT);
}
if ((startValue instanceof ColorBackground) && (endValue instanceof ColorBackground)) {
return new ColorBackground(Color.fadeColors(((ColorBackground) startValue).getColor(), ((ColorBackground) endValue).getColor(), pos));
} else {
// TODO implementálni
return super.animate(pos, startValue, endValue);
}
}