step method
Implementation
@override
void step(double time, Size size) {
t = t + (time * 10);
x = size.width / 2 +
cos(0.5 * (cw ? -1 : 1) * t * r) *
min((r * r2) * (t * t) + (r + r2 + r3) * size.width * 2,
t * 10 * (r + r2 + r3));
y = size.height / 2 +
sin(0.5 * (cw ? -1 : 1) * t * r2) *
min((r2 * r3) * (t * t) + (r + r2 + r3) * size.height * 2,
t * 10 * (r + r2 + r3));
s = min<double>(
t * r3 * r2 * r * (t < 5 ? 1.0 : (pow(t / 5, 5))) / 5, 2000.0) +
r +
r2 +
r3 +
3;
}