mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 17:48:45 +08:00
Fixed AS3 colors.
This commit is contained in:
parent
af67a799d9
commit
c03860383c
@ -246,7 +246,7 @@ public class SkeletonJson {
|
||||
static private function toColor (hexString:String, colorIndex:int) : Number {
|
||||
if (hexString.length != 8)
|
||||
throw new ArgumentError("Color hexidecimal length must be 8, recieved: " + hexString);
|
||||
return parseInt(hexString.substring(colorIndex * 2, 2), 16) / 255;
|
||||
return parseInt(hexString.substring(colorIndex * 2, colorIndex * 2 + 2), 16) / 255;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user