This modifier assigns colors to particles, bonds, or vector glyphs according to a selected input property. It thus provides a simple method to visualize the values of a per-particle or a per-bond quantity by means of a coloring scheme.
The Operate on field selects the kind of elements the modifier should assign color to. Depending on this choice, the modifier does the following:
Particles are colored by setting their
Bonds are colored by setting their
Vector glyphs are colored by setting the
The color to be assigned to a given element (e.g. particle) is determined as follows by the modifier: First, the value of the selected input property of the element is linearly mapped (and clamped) to the unit interval [0,1] according to the Start value and End value parameters of the modifier. This normalized value is then mapped to an RGB color value based on the selected color gradient type.
The Start value and End value parameters to the minimum and maximum value of the selected input property, respectively. This ensures that no clamping of value occurs for the current simulation frame. The button does the same but will take into account all frames of the loaded animation sequence when determining the range of property values. The button swaps the Start value and End value parameters to effectively reverse the color scale.function resets the
Custom color maps
The modifier offers a set of predefined color maps that you can choose from. If you would like to define your own type of color map instead, select Load custom color map... from the gradient list box. The program will ask you to pick an image file containing the custom color gradient. You can prepare an appropriate image using any image editing program. OVITO will use the colors along one row of pixels of the imported image to generate the user-defined color map. Here are two examples of color map images:
You can superimpose a legend for the color coding into rendered images by adding a Color legend overlay to the active viewport.
- Operate on
Controls whether the modifier assigns colors to particles, bonds or vector arrows.
The input particle property or bond property whose values should be used for coloring.
- Color gradient
Selects the color gradient for mapping scalar values to colors.
- Start & end value
Controls the value range for the linear mapping of input values to the [0,1] interval.
- Color only selected elements
This option restricts the assignment of colors to currently selected particles or bonds. The colors of unselected particles or bonds will remain unchanged.
- Keep selection
OVITO highlights selected particles in red in the interactive viewports. Since this would mask the actual colors assigned by this modifier, the modifier clears the current selection by default. This option retains the current selection so that it remains available to subsequent modifiers in the data pipeline.