# Replacement default color map and background palette

**URL:** https://discourse.paraview.org/t/replacement-default-color-map-and-background-palette/12712
**Category:** Development
**Created:** [August 17, 2023, 7:39pm UTC](https://discourse.paraview.org/t/replacement-default-color-map-and-background-palette/12712 "2023-08-17T19:39:31Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [September 11, 2023, 5:24am UTC](https://discourse.paraview.org/t/replacement-default-color-map-and-background-palette/12712/16 "2023-09-11T05:24:35Z")

</div>

Not quite on topic, but I have been searching for any information on the parameters used in the XML colormap files. Is there a specification somewhere?

For example in Fast.xml refered to above a point is specified as:

```xml
<Point x="0" o="1" r="0.08800000000000002" g="0.18810000000000007" b="0.55" cms="1" isMoT="true"/>

```

I understand that “x” repfers to the point on the axis and “r,g,b” are obvious but what is “o”, “cms” and “isMoT”? I thought “o” might be opacity but I now doubt that because when looking at **Accent** :

```xml
<ColorMaps>
<ColorMap name="Accent" space="RGB">
<Point x="0.000000" o="0.000000" r="0.498039" g="0.788235" b="0.498039"/>
<Point x="0.003922" o="0.003922" r="0.504821" g="0.785329" b="0.507190"/>
<Point x="0.007843" o="0.007843" r="0.511603" g="0.782422" b="0.516340"/>
...
<Point x="0.996078" o="0.996078" r="0.409581" g="0.398816" b="0.391496"/>
<Point x="1.000000" o="1.000000" r="0.400000" g="0.400000" b="0.400000"/>
</ColorMap>

```

it seems to be a duplicate of x. However in **B-W\_LINEAR** :

```auto
<ColorMaps>
<ColorMap name="B-W_LINEAR" space="RGB">
<Point x="-1.000000" o="0.000000" r="0.000000" g="0.000000" b="0.000000"/>
<Point x="-0.992157" o="0.003922" r="0.003922" g="0.003922" b="0.003922"/>
<Point x="-0.984314" o="0.007843" r="0.007843" g="0.007843" b="0.007843"/>
...
<Point x="0.984314" o="0.992157" r="0.992157" g="0.992157" b="0.992157"/>
<Point x="0.992157" o="0.996078" r="0.996078" g="0.996078" b="0.996078"/>
<Point x="1.000000" o="1.000000" r="1.000000" g="1.000000" b="1.000000"/>
</ColorMap>

```

this is not the case at all.  
These maps are found in [Contributed Colormaps](https://www.paraview.org/Wiki/Colormaps)

Some colormaps, such as **div5-asym-orange-blue.xml** have extra sections at the end like this:

```auto
<ColorMaps>
<ColorMap space="Lab" indexedLookup="false" group="Interlinked" name="Divergent 1 / Divergent 1">
<Point x="0" o="1" r="0.4392156862745098" g="0.00784313725490196" b="0.09411764705882353"/>
<Point x="0" o="1" r="0.4392156862745098" g="0.00784313725490196" b="0.09411764705882353"/>
...
<Point x="0.9813086263340534" o="1" r="0.10196078431372549" g="0.011764705882352941" b="0.37254901960784315"/>
<Point x="1" o="1" r="0.0862745098039216" g="0.00392156862745098" b="0.298039215686275"/>
<Section colorMapName="Divergent 1" startIndex="0" endIndex="2" startPos="0" endPos="0.38380441069602966" startValue="-0.1008171162445716" endValue="2.1247415330501864" flipped="true" startAlpha="1" endAlpha="1"/>
<Section colorMapName="Divergent 1" startIndex="2" endIndex="1" startPos="0.38380441069602966" endPos="1" startValue="-1.0007971646287332" endValue="1" flipped="true" startAlpha="1" endAlpha="1"/>
</ColorMap>
</ColorMaps>

```

I am thinking of making the XML colormap reader in the VTK examples more able to parse/implement these features.

Thanks

---

_[View the full topic](https://discourse.paraview.org/t/replacement-default-color-map-and-background-palette/12712)._
