<DIV>Hi, Teresa,</DIV>
<DIV> you can try class vtkColorTransferFunction. for example:</DIV>
<DIV>// Create a transfer function mapping scalar value to color (color)<BR> vtkColorTransferFunction *cTFun = vtkColorTransferFunction::New();<BR> cTFun->AddRGBPoint( 0, 1.0, 0.0, 0.0 );<BR> cTFun->AddRGBPoint( 64, 1.0, 1.0, 0.0 );<BR> cTFun->AddRGBPoint( 128, 0.0, 1.0, 0.0 );<BR> cTFun->AddRGBPoint( 192, 0.0, 1.0, 1.0 );<BR> cTFun->AddRGBPoint( 255, 0.0, 0.0, 1.0 );<BR> hope this could help you.</DIV>
<DIV> M. J.</DIV>