So far these work: new THREE.Color( 'rgb(255,0,0)' ); new THREE.Color( 'purple' ); new THREE.Color( 0xff0000 );
@@ -62,9 +62,9 @@ THREE.Material.prototype.setValues = function ( values ) {
currentValue.copy( newValue );
- } else if ( currentValue instanceof THREE.Color && typeof( newValue ) === "number" ) {
+ } else if ( currentValue instanceof THREE.Color ) {
- currentValue.setHex( newValue );
+ currentValue.set( newValue );
} else if ( currentValue instanceof THREE.Vector3 && newValue instanceof THREE.Vector3 ) {