[libgdx] Added Skeleton#setColor(float, float, float, float).

This commit is contained in:
Nathan Sweet 2020-11-19 18:11:59 -08:00
parent e5be13e3d6
commit 3cab1615ad

View File

@ -680,6 +680,11 @@ public class Skeleton {
this.color.set(color);
}
/** A convenience method for setting the skeleton color. The color can also be set by modifying {@link #getColor()}. */
public void setColor (float r, float g, float b, float a) {
color.set(r, g, b, a);
}
/** Scales the entire skeleton on the X axis. This affects all bones, even if the bone's transform mode disallows scale
* inheritance. */
public float getScaleX () {