I would like to generate an animation of similar objects whose characteristics are defined by a function (one that is Piecewise defined, it that makes any difference). If I explicitly define the list of objects with their parameters then the animation works as desired. But I expect to have a large number of objects so that I would like to automatically generate the desired list. A simple example of what I am attempting is shown below. The following example works as expected
f1[t_] :=
Piecewise[{{t, 0 <= t < 3}, {3 - (t - 3)/2, 3 <= t < 6}, {1.5,
t >= 6}}]
Animate[Graphics[{Circle[{f1[t], 0}, 1], Circle[{f1[t - 1], 0}, 2]},
PlotRange -> {{-5, 5}, {-4, 4}}], {t, 0, 10}, AnimationRate -> .5]
But if I try to automatically generate the list of objects with either
gList = Circle[{f1[t - #], 0}, 1 + #] & /@ {0, 1}
or
gList1 = Table[Circle[{f1[t - k], 0}, 1 + k], {k, 0, 1}]
then
Animate[Graphics[gList, PlotRange -> {{-5, 5}, {-4, 4}}], {t, 0, 10},
AnimationRate -> .5]
fails. I have tried various combinations of Hold and HoldForm, but have been unsuccessful in generating a list that Animate will accept. Is there any way that I can generate the list automatically that can be used in the animation?