// Swim!
for (var j = 1; j < m; ++j) {
const vx = x - t.px[j];
const vy = y - t.py[j];
const k2 = Math.sin(((t.count += count) + j * 3) / 300) / speed;
t.px[j] = (x += dx / speed * k1) - dy * k2;
t.py[j] = (y += dy / speed * k1) + dx * k2;
speed = Math.sqrt((dx = vx) * dx + (dy = vy) * dy);
}