RGB to xy Color conversion- updated with example code.