mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Added Skeleton#setColor(float, float, float, float).
This commit is contained in:
parent
e5be13e3d6
commit
3cab1615ad
@ -680,6 +680,11 @@ public class Skeleton {
|
|||||||
this.color.set(color);
|
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
|
/** Scales the entire skeleton on the X axis. This affects all bones, even if the bone's transform mode disallows scale
|
||||||
* inheritance. */
|
* inheritance. */
|
||||||
public float getScaleX () {
|
public float getScaleX () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user