vertical ellipse to horizontal ellipse
vertical ellipse to horizontal ellipse

modified to these
px = cx + 2 * r * Math.cos(degree * Math.PI/180);
py = cy + r * Math.sin(degree * Math.PI/180);
codotronix/codotronix.github.io,codotronix/codotronix.github.io