| Knowledgebase Home | Contact |
| How can I rearrange the color Presets, or add my own custom colormaps to the Presets drop down menu? | |||||||||
![]() There is not a way in the user interface to change the order of the items in this list, or to add your own color spectrums (colormaps). However, you can do this manually. All the color spectrums above are saved in the Gradient.ini file, located in the writeable directory - which depends on the Operating System. Windows XP: C:\Documents and Settings\(username)\Application Data\Golden Software\Surfer 10
To rearrange the presets in the drop down menu: 1. Open the Gradient.ini file in a text editor, like Notepad. 2. Select all the lines of data for a particular color spectrum. For example, the example below selects the Rainbow color spectrum information: ![]() 3. Go to Edit | Cut. 4. Place your cursor in the location you want that color spectrum to be. This example will put the Rainbow color spectrum between the GrayScale and ChromaDepth color spectrums: ![]() 5. Go to Edit | Paste to paste in the information. ![]() 6. Go to File | Save and resave the file. 7. Restart Surfer and the presets will be in the new order. ![]() To add a new preset 1. Open the Gradient.ini file in a text editor, like Notepad. 2. Put your cursor in the location you want the new spectrum to be in the order of the Presets drop down menu. 3. Enter the Preset information. This includes the color spectrum name, a 0 and the number of color nodes. This is followed by the information for each color node, starting with a number between 0 and 1 (which determines the color node location, must be specified in increasing order), then the RGB component values for that color node (0 to 255). More information is found in the Format and Notes sections at the top of Gradient.ini. ![]() If this information is hard to come up with manually, you can create the color spectrum you want in the Colormap dialog of the user interface, and click the Save button to save it to a CLR file. Open the CLR file in Notepad and copy the color node information from the CLR file into the Gradient.ini file. You will need to make sure the header information is correct, and then divide the node position data by 100 as the CLR files save the node positions in percent (from 0 to 100) and the Gradient.ini file saves the node positions from 0 to 1. 5. Go to File | Save and resave the Gradient.ini file. 6. Restart Surfer and the new preset will be included in the drop down menu. ![]() |
| Visitor Comments |
| No visitor comments posted. Post a comment |
| Attachments |
| No attachments were found. |