Manually Creating a Colormap

From KitwarePublic
Revision as of 15:55, 8 September 2009 by Daviddoria (talk | contribs) (New page: You can create an xml file like this: <source lang=text> <ColorMap name="Consistency" space="RGB"> <Point x="-1.000" o="1" r="0.0" g="0.0" b="0.0"/> <Point x="0.000" o="1" r="0.0" g="1.0...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

You can create an xml file like this:

<source lang=text> <ColorMap name="Consistency" space="RGB">

<Point x="-1.000" o="1" r="0.0" g="0.0" b="0.0"/> <Point x="0.000" o="1" r="0.0" g="1.0" b="0.0"/> <Point x="1.000" o="1" r="1.0" g="0.0" b="0.0"/>

</ColorMap> </source>

which specifies that values=-1 should be black (rgb=(0,0,0)), values at 0 should be green, and values at 1 should be red. You can then click "Edit color map" -> "Choose preset" -> "Import", select the new xml file, and you will see the colors are interpolated along the new color axis you have defined.