Creating a Unique Color Palette in Minex

GEOVIA Minex has a default color palette, which enables users to choose from one of 256 colors. Users can activate the current color map through the menu Graphics > Color Map.


At times, Minex users are required to choose a color number and use every nth color. For example, start at color number 3 and choose every 16th color from the palette. The color numbers would then be selected accordingly from the current palette.

In addition to the default color palette, Minex provides several color palettes, which can be selected through the menu Graphics > Import Color Map. These palettes are stored in the folder C:\Users\Public\GEOVIA\GEOVIA Minex\<version>\shared\etc\palettes

Minex users can also create their own palette should they prefer a different option. To do so, open a palette file from the folder in a text editor.

In the above image, there are 256 lines in this color palette file which is a RBG type palette where the first column represents the color number.  The decimal numbers in the three columns are the Red Blue and Green values divided by 255. The RBG values for a color can be obtained from Minex for any color.

Using the Minex Select Color window, create colors and check the RBG form there. Note:  If a Minex uses know the html color code, enter it directly in the Color Code field. Click here for a list of color code examples.

 It’s important to note that when using macros in most places, color is used as an index. For instance, in a recorder macro for a grid display, part of which is shown below, has an index -16515125:

MinexTask “GRID_DISPLAY” { }
MinexDialogAction “GridDisplay” “ok” {
all = true
cancel = true
clipGridCheckBox = true
colorChooser = -16515125

The line colorChooser indicates the color. This color is index is created as below from the RBG values of a color, using the following relation:

Color Index = -16777216 + ((R*255)*65536 + (G*255)*256 + (B*255)). Note: R, G and B are decimal values between 0.0 and 1.0. To convert to decimal, divide by 255.

 

Looking for Minex Tips & Tricks? Read my earlier post on Creating a Title Block in Minex and Using TCL Scripts to Automate Minex.

Ranajit Das

Ranajit Das

Senior Mining Industry Process Consultant, GEOVIA at Dassault Systèmes
Ranajit is a qualified Mining Engineer with over 22 years of experience in mine planning, consulting, operations, logistics, exploration and feasibility studies. Ranajit has previously worked for the Steel Authority of India, Santa Fe Mining in Chile and JSW Steel in India. He specializes in GEOVIA Minex and Surpac.