|
@@ -3941,12 +3941,14 @@ var spine;
|
|
|
this.b = b;
|
|
|
this.a = a;
|
|
|
this.clamp();
|
|
|
+ return this;
|
|
|
};
|
|
|
Color.prototype.setFromColor = function (c) {
|
|
|
this.r = c.r;
|
|
|
this.g = c.g;
|
|
|
this.b = c.b;
|
|
|
this.a = c.a;
|
|
|
+ return this;
|
|
|
};
|
|
|
Color.prototype.setFromString = function (hex) {
|
|
|
hex = hex.charAt(0) == '#' ? hex.substr(1) : hex;
|
|
@@ -3954,6 +3956,7 @@ var spine;
|
|
|
this.g = parseInt(hex.substr(2, 2), 16) / 255.0;
|
|
|
this.b = parseInt(hex.substr(4, 2), 16) / 255.0;
|
|
|
this.a = (hex.length != 8 ? 255 : parseInt(hex.substr(6, 2), 16)) / 255.0;
|
|
|
+ return this;
|
|
|
};
|
|
|
Color.prototype.add = function (r, g, b, a) {
|
|
|
this.r += r;
|
|
@@ -3961,6 +3964,7 @@ var spine;
|
|
|
this.b += b;
|
|
|
this.a += a;
|
|
|
this.clamp();
|
|
|
+ return this;
|
|
|
};
|
|
|
Color.prototype.clamp = function () {
|
|
|
if (this.r < 0)
|
|
@@ -6322,6 +6326,7 @@ var spine;
|
|
|
this.boneOriginColor = new spine.Color(0, 1, 0, 1);
|
|
|
this.attachmentLineColor = new spine.Color(0, 0, 1, 0.5);
|
|
|
this.triangleLineColor = new spine.Color(1, 0.64, 0, 0.5);
|
|
|
+ this.pathColor = new spine.Color().setFromString("FF7F00");
|
|
|
this.aabbColor = new spine.Color(0, 1, 0, 0.5);
|
|
|
this.drawBones = true;
|
|
|
this.drawRegionAttachments = true;
|
|
@@ -6432,7 +6437,7 @@ var spine;
|
|
|
var nn = path.worldVerticesLength;
|
|
|
var world = this.temp = spine.Utils.setArraySize(this.temp, nn, 0);
|
|
|
path.computeWorldVertices(slot, world);
|
|
|
- var color = path.color;
|
|
|
+ var color = this.pathColor;
|
|
|
var x1 = world[2], y1 = world[3], x2 = 0, y2 = 0;
|
|
|
if (path.closed) {
|
|
|
shapes.setColor(color);
|