Example #1
0
 public CircleShape init(ShapeRenderer.ShapeType type, float diameter) {
   super.init(type);
   this.radius = diameter / 2;
   return this;
 }
Example #2
0
 public RectShape init(ShapeRenderer.ShapeType type, float width, float height) {
   super.init(type);
   return size(width, height);
 }