single value color specification

Blitz3D Forums/Blitz3D Beginners Area/single value color specification

Is there any way specifying a color out of the whole spectrum with a single value instead of RGB (eg. HEX FFFFFF)? I need to give a different color to each value out of a data base. Also vice versa I need to get the data base value out of the color.