color detection with mass center