GMS:Color Ramp: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:ColorOptions.jpg|thumb|350 px|An example of the ''Color Options'' dialog.]]
[[File:ColorOptions.png|thumb|350 px|An example of the ''Color Options'' dialog.]]
Several of the display options (contours, iso-surfaces, color-shaded vectors, etc.) use a color ramp to vary the display color based on a relative value. The color ramp can be edited by selecting the '''Color Ramp''' command in the ''Contour Options'' dialog. The ''Color Options'' dialog contains the following options:
Several of the display options (contours, isosurfaces, color-shaded vectors, etc.) use a color ramp to vary the display color based on a relative value. The color ramp can be edited by selecting the '''Color Ramp''' command in the ''Contour Options'' dialog. This dialog is also available as part of the options for other parts of GMS. The ''Color Options'' dialog contains the following options:


=== Legend ===
<!--=== Legend ===


If the ''Legend'' option is selected, a vertical strip of colors with a legend of corresponding dataset values is displayed in the upper left corner of the ''Graphics Window'' whenever the color ramp is used to display an object (shading, color contours, etc.). The length and width of the color legend are specified with the Legend width and Legend height edit fields. The values entered for legend width and height are in screen pixels.
If the ''Legend'' option is selected, a vertical strip of colors with a legend of corresponding dataset values is displayed in the upper left corner of the ''Graphics Window'' whenever the color ramp is used to display an object (shading, color contours, etc.). The length and width of the color legend are specified with the ''Legend width'' and ''Legend height'' edit fields. The values entered for legend width and height are in screen pixels.-->


=== Palette Method ===
=== Palette Method ===


The ''Palette Method'' section lists the three basic options for defining the color ramp:
The ''Palette Method'' section lists the four basic options for defining the color ramp:
 
'''Solid color'''
 
Defines a single color that will be used for the contours. Usually best for linear contours without any color fill.


'''Intensity Ramp'''
'''Intensity Ramp'''


The ''Intensity Ramp'' option defines a ramp of colors corresponding to a varying intensities of a single color.
The ''Intensity Ramp'' option defines a ramp of colors corresponding to varying intensities of a single color.


'''Hue Ramp'''
'''Hue Ramp'''
Line 23: Line 27:


=== User-Defined Palettes ===
=== User-Defined Palettes ===
[[File:NewPalette.jpg|thumb|240 px|An example of the ''New Palatte'' dialog.]]
[[File:NewPalette.png|thumb|240 px|An example of the ''New Palette'' dialog.]]
The user-defined color palettes are listed in the upper right corner of the ''Color Ramp Options'' dialog. A new palette is created by selecting the '''New''' button. This button brings up the ''New Palette'' dialog listing a set of options for defining the initial color palette. These colors can be edited using the ''Current Palette'' section of the ''Color Ramp Options'' dialog. An existing palette can be deleted using the Delete button.
The user-defined color palettes are listed in the upper right corner of the ''Color Options'' dialog. A new palette is created by selecting the '''New Palette''' button. This button brings up the ''New Palette'' dialog, listing a set of options for defining the initial color palette. These colors can be edited using the ''Current Palette'' section of the ''Color Options'' dialog. An existing palette can be deleted using the '''Delete Palette''' button.


Once a set of user-defined color palettes are created, they are saved with the project to a palette file (*.pal). The '''Import''' and '''Export''' buttons can be used to share user-defined palettes between projects.
Once a set of user-defined color palettes are created, they are saved with the project to a palette file (*.pal). The '''Load palettes''' and '''Save Palettes''' buttons can be used to share user-defined palettes between projects.


=== Current Palette ===
=== Current Palette ===


The current color palette is displayed in the ''Current Palette'' section. The min and max value of the color ramp can be set by clicking and dragging the two triangles just below the color palette. For user-defined color palettes, new colors can be added, colors can be deleted, and the color associated with a color entry can be edited using the tools just below the palette.
The current color palette is displayed in the ''Current Palette'' section. When the "Intensity ramp" or "Hue ramp" options are selected, the min and max value of the color ramp can be set by clicking and dragging the two triangles just below the color palette. The min and max can also be edited using the ''Min value'' and ''Max value'' fields.


The data value associated with a selected color can be edited either by dragging the color or by entering a new value directly. The values can be displayed as either percentages or direct values (corresponding to the active dataset). The Edit Table button can be used to edit the colors and corresponding values directly in a tabular format.
====User-defined Color Palettes====
There are several options unique to User-defined color palettes.
*'''Add Value''' &ndash; This tool's icon is paint bucket. When this tool is selected, clicking in the current color palette adds a new value and color at the specified location.
*'''Select Value''' &ndash; This tool's icon is an arrow pointing at a line. Select a value in the palette to edit its associated value. Double-click a value to open a ''Color'' dialog allowing for editing the color associated with a value. The data value associated with a selected color can be edited either by dragging the color in the palette or by entering a new value directly in the ''Value'' box.
*''Display values as'' &ndash; The values can be displayed as either percentages or direct values (corresponding to the active dataset).  
*'''Edit Table''' &ndash; Opens a ''Color Table'' dialog used to edit the colors and corresponding values directly in a tabular format. To delete a color and its corresponding value, simply clear the ''Value'' column in this dialog and click '''OK'''.


=== Preview ===
===Palette Preview ===


The ''Preview'' section at the bottom of the ''Color Options'' dialog displays the color ramp defined by the current palette and max and min values. The '''Reverse''' button can be used to reverse the direction of the color ramp (for example, to switch from red-yellow-green-blue to blue-green-yellow-red).
The ''Palette preview'' section at the bottom of the ''Color Options'' dialog displays the color ramp defined by the current palette and max and min values. The '''Reverse''' button can be used to reverse the direction of the color ramp (for example, to switch from red-yellow-green-blue to blue-green-yellow-red).




Line 46: Line 55:
{{Navbox GMS}}
{{Navbox GMS}}
[[Category:GMS Display Options]]
[[Category:GMS Display Options]]
[[Category:GMS Display Dialogs]]

Latest revision as of 17:53, 4 April 2022

An example of the Color Options dialog.

Several of the display options (contours, isosurfaces, color-shaded vectors, etc.) use a color ramp to vary the display color based on a relative value. The color ramp can be edited by selecting the Color Ramp command in the Contour Options dialog. This dialog is also available as part of the options for other parts of GMS. The Color Options dialog contains the following options:


Palette Method

The Palette Method section lists the four basic options for defining the color ramp:

Solid color

Defines a single color that will be used for the contours. Usually best for linear contours without any color fill.

Intensity Ramp

The Intensity Ramp option defines a ramp of colors corresponding to varying intensities of a single color.

Hue Ramp

The Hue Ramp option defines a ramp of color hues (red-yellow-green-blue-magenta) at the maximum color intensity.

User-Defined

If the User-Defined option is selected, a user-defined color palette is used to define the color ramp.

User-Defined Palettes

An example of the New Palette dialog.

The user-defined color palettes are listed in the upper right corner of the Color Options dialog. A new palette is created by selecting the New Palette button. This button brings up the New Palette dialog, listing a set of options for defining the initial color palette. These colors can be edited using the Current Palette section of the Color Options dialog. An existing palette can be deleted using the Delete Palette button.

Once a set of user-defined color palettes are created, they are saved with the project to a palette file (*.pal). The Load palettes and Save Palettes buttons can be used to share user-defined palettes between projects.

Current Palette

The current color palette is displayed in the Current Palette section. When the "Intensity ramp" or "Hue ramp" options are selected, the min and max value of the color ramp can be set by clicking and dragging the two triangles just below the color palette. The min and max can also be edited using the Min value and Max value fields.

User-defined Color Palettes

There are several options unique to User-defined color palettes.

  • Add Value – This tool's icon is paint bucket. When this tool is selected, clicking in the current color palette adds a new value and color at the specified location.
  • Select Value – This tool's icon is an arrow pointing at a line. Select a value in the palette to edit its associated value. Double-click a value to open a Color dialog allowing for editing the color associated with a value. The data value associated with a selected color can be edited either by dragging the color in the palette or by entering a new value directly in the Value box.
  • Display values as – The values can be displayed as either percentages or direct values (corresponding to the active dataset).
  • Edit Table – Opens a Color Table dialog used to edit the colors and corresponding values directly in a tabular format. To delete a color and its corresponding value, simply clear the Value column in this dialog and click OK.

Palette Preview

The Palette preview section at the bottom of the Color Options dialog displays the color ramp defined by the current palette and max and min values. The Reverse button can be used to reverse the direction of the color ramp (for example, to switch from red-yellow-green-blue to blue-green-yellow-red).


See also