color tables

I’m writing a software and I have a 3D mesh drawn. I need to color each vertex based on data I get from a file. Each coordinate has a certain value associated, and I want a specific color for each range of values. I want to use different color tables, such as the ones available in scion image. Does anybody know a way to export them into my code??