However, the lemniscate of Bernoulli may be visually more pleasing; it has a parametrization very similar to the lemniscate of Gerono, except that both axes are scaled by a factor of 1/(sin(t)^2 + 1) = 2/(3 - cos(2t)):
scale = 2 / (3 - cos(2t));
x = scale cos(t);
y = scale * sin(2*t) / 2;
It looks like this: