Skip to content

Commit 52786f0

Browse files
authored
Update fromColor3.js
1 parent ea70564 commit 52786f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Typings/Color/Resources/fromColor3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function fromColor3(red=0, green=0, blue=0, alpha=1, color=new Color()) {
1313
color.green = green*255;
1414
color.blue = blue*255;
1515
color.alpha = alpha;
16-
color.hexCode = rgbToHex(color.red, color.green, color.blue);
16+
color.hexCode = rgbToHex(Math.round(color.red), Math.round(color.green), Math.round(color.blue));
1717
color.hexCodeNumber = parseInt(color.hexCode.replace("#", "0x"));
1818

1919
color.color3 = {

0 commit comments

Comments
 (0)