() => {
                self.onmessage = function (e) {
                    const { time, radii, speeds, centerX, centerY } = e.data;
                    const ps = [];
                    for (let i = 0; i < radii.length; i++) {
                        const ang = speeds[i] * time;
                        ps.push({
                            x: centerX + radii[i] * Math.cos(ang),
                            y: centerY + radii[i] * Math.sin(ang)
                        });
                    }
           