/** Calls {@link #ellipse(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height, float rotation) { ellipse(x, y, width, height, rotation, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #ellipse(float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height) { ellipse(x, y, width, height, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #ellipse(float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height) { ellipse(x, y, width, height, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #ellipse(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height, float rotation) { ellipse(x, y, width, height, rotation, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); Ellipse ellipse = ((EllipseMapObject)mapObject).getEllipse(); shapeRenderer.ellipse(ellipse.x, ellipse.y, ellipse.width, ellipse.height); shapeRenderer.end(); } else if (mapObject instanceof CircleMapObject) {
/** Calls {@link #ellipse(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height, float rotation) { ellipse(x, y, width, height, rotation, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #ellipse(float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height) { ellipse(x, y, width, height, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
public void drawOval(int x, int y, int w, int h) { endBatch(); shapeRenderer.begin(ShapeRenderer.ShapeType.Line); shapeRenderer.setColor(currentColor); shapeRenderer.ellipse(x, height - y - h, w, h); shapeRenderer.end(); }
public void fillOval(int x, int y, int w, int h) { endBatch(); shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); shapeRenderer.setColor(currentColor); shapeRenderer.ellipse(x, height - y - h, w, h); shapeRenderer.end(); }
sr.ellipse(0, sideshort2 - side * 0.015f, side, side * 0.03f);