From e6aaf8b8aa950622ec1dbbd19b2e60e689ad8122 Mon Sep 17 00:00:00 2001 From: Esmaperdut Date: Mon, 27 Jan 2014 22:48:49 +0100 Subject: [PATCH] Proper color when drawing Hi xoppa, Thank you very much for this code, I been able to succesfully apply this in my libgdx game and it looks much better now :) Let me ask you a small question, there is a quick way to change the starting position and direction? I managed to achieve it using -height, but it far from ideal. --- src/com/xoppa/android/misc/RadialSprite.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/xoppa/android/misc/RadialSprite.java b/src/com/xoppa/android/misc/RadialSprite.java index cfa68d5..29eb2cd 100644 --- a/src/com/xoppa/android/misc/RadialSprite.java +++ b/src/com/xoppa/android/misc/RadialSprite.java @@ -171,6 +171,7 @@ public void setScale(float x, float y) { @Override public void draw(SpriteBatch batch, float x, float y, float width, float height) { + setColor(batch.getColor()); draw(batch, x, y, width, height, this.angle); }