|  | 
COMMON Colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
| note | Do not attempt to edit the .wg_colors file — doing so could lead to unpredictable results. | 
 Color Model (menu) — Choose a color system from the menu. By default, the CeditTool uses the RGB color system. For more information about color systems, refer to the section Understanding Color Systems in the PV‑WAVE User’s Guide.
Color Model (menu) — Choose a color system from the menu. By default, the CeditTool uses the RGB color system. For more information about color systems, refer to the section Understanding Color Systems in the PV‑WAVE User’s Guide. Color Cell Text Fields and Sliders — These controls allow you to modify the three basic components of any color in the color table. The labels on the text fields and sliders change to coincide with the current color system. First, select a color to modify by clicking on one of the color cells in the display area, or by entering its index number in the Selected Color text field. To modify the selected color, either enter a new color value in one of the text fields, or use the slider to change the value. If you enter a new color value into a text field, press <Return> to apply the new value to the slider and the color cell that corresponds to the selected color. If you use the sliders, the change is applied immediately as the slider moves.
Color Cell Text Fields and Sliders — These controls allow you to modify the three basic components of any color in the color table. The labels on the text fields and sliders change to coincide with the current color system. First, select a color to modify by clicking on one of the color cells in the display area, or by entering its index number in the Selected Color text field. To modify the selected color, either enter a new color value in one of the text fields, or use the slider to change the value. If you enter a new color value into a text field, press <Return> to apply the new value to the slider and the color cell that corresponds to the selected color. If you use the sliders, the change is applied immediately as the slider moves. Selected Color — The index number of the currently selected color in the color table. Once a color is selected, other sliders and text fields in the tool control area can be used to modify its composition. Select a color by clicking the left mouse button on a color cell in the palette of cells, or by entering the color’s index number in this text field and pressing <Return>.
Selected Color — The index number of the currently selected color in the color table. Once a color is selected, other sliders and text fields in the tool control area can be used to modify its composition. Select a color by clicking the left mouse button on a color cell in the palette of cells, or by entering the color’s index number in this text field and pressing <Return>. Ramp Start and End — Two text fields where you can enter color table indices between which the CeditTool will perform a linear color interpolation; this is an easy way to edit the current color table. Either enter the beginning and ending color indices in the Ramp Start and Ramp End text fields or use the mouse to select the ramp’s starting and ending colors. (To use the mouse, click the left mouse button on the starting color cell and the middle mouse button on the ending color cell.) Select the Ramp command from the Edit menu on the CeditTool window. The affected cells in the displayed color table are updated immediately, although no permanent change is made until you save the color table as a custom color table.
Ramp Start and End — Two text fields where you can enter color table indices between which the CeditTool will perform a linear color interpolation; this is an easy way to edit the current color table. Either enter the beginning and ending color indices in the Ramp Start and Ramp End text fields or use the mouse to select the ramp’s starting and ending colors. (To use the mouse, click the left mouse button on the starting color cell and the middle mouse button on the ending color cell.) Select the Ramp command from the Edit menu on the CeditTool window. The affected cells in the displayed color table are updated immediately, although no permanent change is made until you save the color table as a custom color table. Save Custom — Save the current set of color indices using the same custom color table name as before.
Save Custom — Save the current set of color indices using the same custom color table name as before. Save As Custom — Save the current set of color indices as a new custom color table with a unique name.
Save As Custom — Save the current set of color indices as a new custom color table with a unique name. Rename Custom — Rename a custom color table. You must select the custom color table from the Custom Color Table option menu (select the Custom command from ColorTables menu) before you can rename it.
Rename Custom — Rename a custom color table. You must select the custom color table from the Custom Color Table option menu (select the Custom command from ColorTables menu) before you can rename it. Delete Custom — Delete one of the custom color tables from the list. For details about where this list of color tables is stored, refer to 
    "Custom Color Table File".
Delete Custom — Delete one of the custom color tables from the list. For details about where this list of color tables is stored, refer to 
    "Custom Color Table File". Exit — Destroy the CeditTool window and all its children.
Exit — Destroy the CeditTool window and all its children. Ramp — Create a color ramp between the start ramp color and the end ramp color. See the description of Ramp Start and Ramp End on the previous page for more information about choosing start and end ramp colors.
Ramp — Create a color ramp between the start ramp color and the end ramp color. See the description of Ramp Start and Ramp End on the previous page for more information about choosing start and end ramp colors. Restore — Restore the original color map for the selected color table.
Restore — Restore the original color map for the selected color table. System — Display a list of system color tables. System color tables are provided with PV‑WAVE and cannot be modified.
System — Display a list of system color tables. System color tables are provided with PV‑WAVE and cannot be modified. Custom — Display a list of custom color tables. These are color tables that you have created using Save Custom or Save As Custom command from the Controls menu.
Custom — Display a list of custom color tables. These are color tables that you have created using Save Custom or Save As Custom command from the Controls menu. Color Wheel — Select the HLS or HSV components for a particular color by interacting with a dial and a slider; the color wheel is shown in 
    Figure 19-4: Utility Widgets on page 1458.
Color Wheel — Select the HLS or HSV components for a particular color by interacting with a dial and a slider; the color wheel is shown in 
    Figure 19-4: Utility Widgets on page 1458. The characteristics you can adjust in the dial are: 1) hue (azimuth of mouse from the center), and 2) saturation (distance from the center).
The characteristics you can adjust in the dial are: 1) hue (azimuth of mouse from the center), and 2) saturation (distance from the center). The characteristics you can adjust in the vertical slider are value (in the HSV color system) or lightness (in the HLS color system).
The characteristics you can adjust in the vertical slider are value (in the HSV color system) or lightness (in the HLS color system).| note | The farther you click from the center of the wheel (with the left mouse button), the more saturated the color (for that particular hue). | 
 Intensity Graphs — The value of each of the three color system parameters (HLS or HSV) is plotted versus pixel value in a separate line graph. This results in three line graphs showing the current values of the three parameters for the current color table, as shown in 
    Figure 19-4: Utility Widgets on page 1458.
Intensity Graphs — The value of each of the three color system parameters (HLS or HSV) is plotted versus pixel value in a separate line graph. This results in three line graphs showing the current values of the three parameters for the current color table, as shown in 
    Figure 19-4: Utility Widgets on page 1458. Color Bar — Display a vertical color bar; this color bar displays every one of the colors in the current color table; a full-range color bar is shown in 
    Figure 19-4: Utility Widgets on page 1458.
Color Bar — Display a vertical color bar; this color bar displays every one of the colors in the current color table; a full-range color bar is shown in 
    Figure 19-4: Utility Widgets on page 1458. The color bar feature lets you display the colors of the current color table and “rotate” them. To rotate the color table using the color bar, press and drag the left mouse button up or down in the color bar.
The color bar feature lets you display the colors of the current color table and “rotate” them. To rotate the color table using the color bar, press and drag the left mouse button up or down in the color bar. If you have any other CeditTool options displayed on your screen, like the color wheel, you will see immediate effects as the color table shifts in relation to the mouse’s movement.
If you have any other CeditTool options displayed on your screen, like the color wheel, you will see immediate effects as the color table shifts in relation to the mouse’s movement.| note | As you “slide” colors into different color table indices, the colors that “scroll off” the end of the table are added to the opposite end.  | 
 Color Bar Range — Display a vertical color bar displaying only the range of selected colors; a partial-range color bar is shown in 
    Figure 19-4: Utility Widgets on page 1458. The range of selected colors is the same as the range chosen for the linear interpolation in the text fields Ramp Start and Ramp End.
Color Bar Range — Display a vertical color bar displaying only the range of selected colors; a partial-range color bar is shown in 
    Figure 19-4: Utility Widgets on page 1458. The range of selected colors is the same as the range chosen for the linear interpolation in the text fields Ramp Start and Ramp End. From the WAVE> prompt — Enter the procedure name at the WAVE> prompt to display the CeditTool widget. The CeditTool widget handles its own event loop by calling WwLoop.
From the WAVE> prompt — Enter the procedure name at the WAVE> prompt to display the CeditTool widget. The CeditTool widget handles its own event loop by calling WwLoop. Stand-alone widget in its own window created by another application — The CeditTool widget has its own Main window, but the application (not the CeditTool widget) handles the event loop by calling WwLoop.
Stand-alone widget in its own window created by another application — The CeditTool widget has its own Main window, but the application (not the CeditTool widget) handles the event loop by calling WwLoop.|  | 
PRO Sample_wgcedittool, parent, tool_shell
; Create WgCeditTool as a child of "parent". The window of
; the newly created widget is returned via the optional
; output parameter "tool_shell".
IF N_ELEMENTS(parent) NE 0 THEN BEGIN
WgCeditTool, Parent=parent, Shell=tool_shell
ENDIF ELSE BEGIN
; Create WgCeditTool and display it as its own Main window.
; In other words, the WgCeditTool window runs on its own
; (i.e., in its own event loop).
WgCeditTool
ENDELSE
END