We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea70564 commit 52786f0Copy full SHA for 52786f0
src/Typings/Color/Resources/fromColor3.js
@@ -13,7 +13,7 @@ function fromColor3(red=0, green=0, blue=0, alpha=1, color=new Color()) {
13
color.green = green*255;
14
color.blue = blue*255;
15
color.alpha = alpha;
16
- color.hexCode = rgbToHex(color.red, color.green, color.blue);
+ color.hexCode = rgbToHex(Math.round(color.red), Math.round(color.green), Math.round(color.blue));
17
color.hexCodeNumber = parseInt(color.hexCode.replace("#", "0x"));
18
19
color.color3 = {
0 commit comments