8
\$\begingroup\$

Is there any way to increase the width of the line that makes up the shaperenderers circle?

shape.begin(ShapeRenderer.ShapeType.Line);
shape.setProjectionMatrix(batch.getProjectionMatrix());
shape.setColor(1, 0.53f, 0.53f, 1);

shape.circle(nest.getCenter().x, nest.getCenter().y, radius, 500);

If not, is there any other approach that can give a similar effect?

\$\endgroup\$
2
  • \$\begingroup\$ I don't know much about libGDX, however, you could draw multiple circles at varying radius (same position), and thicken the line in a non-efficient manner. \$\endgroup\$ Commented Nov 4, 2015 at 17:49
  • \$\begingroup\$ Yeah That was kinda plan B :D haha \$\endgroup\$ Commented Nov 4, 2015 at 18:17

1 Answer 1

8
\$\begingroup\$

Set the OpenGL line width.

Gdx.gl.glLineWidth(32); // Or whatever thickness you need

// Then render the lines or circles as per what you're currently doing 
shape.begin(ShapeRenderer.ShapeType.Line);
shape.setProjectionMatrix(batch.getProjectionMatrix());
shape.setColor(1, 0.53f, 0.53f, 1);

shape.circle(nest.getCenter().x, nest.getCenter().y, radius, 500);
\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.