rgb helper function

A little helper function to avoid 'complex' string manipulation in examples.