earlygrey / shapedrawer

A library for libGDX that draws simple shapes using a batch.
MIT License
185 stars 32 forks source link

Update ShapeDrawer.java #65

Closed carlrthomas closed 1 year ago

carlrthomas commented 1 year ago

Added triangle(float, float, float, float, float, float, Color, float) to keep in line with how the other shapes can take a Color object.

Let me know if there's any issues with doing this!

earlygrey commented 1 year ago

Am I blind or does the method you're calling not exist? There's no method with a signature matching

triangle(v1, v2, v3, lineWidth, isJoinNecessary(lineWidth) ? JoinType.POINTY : JoinType.NONE, color.toFloatBits());

Also the javadoc doesn't match the arguments or the method being called