8

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?

Green_qaue
  • 1,893
  • 4
  • 24
  • 55

1 Answers1

8

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);
bornander
  • 4,491
  • 1
  • 16
  • 27