Skip to content

Commit

Permalink
Fixed background color.
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-nopper committed Jan 26, 2019
1 parent ca0a4e1 commit d02fe91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/user_interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ class gltfUserInterface
// string format: "#RRGGBB"
fromHexColor(hexColor)
{
const hexR = hexColor.substring(1, 2);
const hexG = hexColor.substring(3, 4);
const hexB = hexColor.substring(5, 6);
const hexR = hexColor.substring(1, 3);
const hexG = hexColor.substring(3, 5);
const hexB = hexColor.substring(5, 7);
return [ this.fromHexValue(hexR) , this.fromHexValue(hexG), this.fromHexValue(hexB) ];
}

Expand All @@ -167,7 +167,7 @@ class gltfUserInterface

fromHexValue(hexValue)
{
return parseInt(hexValue, 16) * 16;
return parseInt(hexValue, 16);
}
}

Expand Down

0 comments on commit d02fe91

Please sign in to comment.