pixi.js - Fix "hex2string" bug

This commit is contained in:
bluepichu
2016-11-02 17:44:27 -04:00
parent baadc0b130
commit db8a22f441
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ namespace basics {
// draw a circle, set the lineStyle to zero so the circle doesn't have an outline
this.graphics.lineStyle(0);
this.graphics.beginFill(0xFFFF0B, 0.5);
this.graphics.beginFill(PIXI.utils.hex2string(0xFFFF0B), 0.5);
this.graphics.drawCircle(470, 90, 60);
this.graphics.endFill();
+1 -1
View File
@@ -1103,7 +1103,7 @@ declare namespace PIXI {
static uuid(): number;
static hex2rgb(hex: number, out?: number[]): number[];
static hex2String(hex: number): string;
static hex2string(hex: number): string;
static rgb2hex(rgb: Number[]): number;
static canUseNewCanvasBlendModel(): boolean;
static getNextPowerOfTwo(number: number): number;