float radius = 100 + 120 * sin(TWO_PI * t + offset); float x = width / 2 + radius * sin(TWO_PI * t + theta); float y = height / 2 + radius * cos(TWO_PI * t + offset + sin(TWO_PI * t + x * 0.01));