|
@@ -349,7 +349,7 @@ class Color {
|
|
|
|
|
|
ColorManagement.fromWorkingColorSpace( _color.copy( this ), colorSpace );
|
|
|
|
|
|
- return clamp( _color.r * 255, 0, 255 ) << 16 ^ clamp( _color.g * 255, 0, 255 ) << 8 ^ clamp( _color.b * 255, 0, 255 ) << 0;
|
|
|
+ return Math.round( clamp( _color.r * 255, 0, 255 ) ) * 65536 + Math.round( clamp( _color.g * 255, 0, 255 ) ) * 256 + Math.round( clamp( _color.b * 255, 0, 255 ) );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -429,7 +429,7 @@ class Color {
|
|
|
|
|
|
}
|
|
|
|
|
|
- return `rgb(${( r * 255 ) | 0},${( g * 255 ) | 0},${( b * 255 ) | 0})`;
|
|
|
+ return `rgb(${ Math.round( r * 255 ) },${ Math.round( g * 255 ) },${ Math.round( b * 255 ) })`;
|
|
|
|
|
|
}
|
|
|
|