297298299300301302303
// ellipse Ellipse getEllipse(double deg, double size) { double rad = Math.PI * deg / 180.0; double x0 = Math.sin(rad) / 2.0; double y0 = Math.cos(rad) / 2.0; return new Ellipse(x0, y0, -x0, -y0, size); }