Hsv -> rgb

If I had HSV values instead of RGB I presume
I would have to convert them to RGB so
I could use them with SDL. Are there
any current examples that use this or
will I have to write my converter

thanks

Simon