// Generate a color array int color[] = color(code); // Apply the color to the display panel setDisplayColor(color); // Set values in the RED/GREEN/BLUE fields setRgbField( (string)color[0], (string)color[1], (string)color[2] );