The Fortran name of this function is NhlFNewColor.
This function adds a color specified as an RGB triple to the colormap of a Workstation instance and returns its HLU color index.
#include <ncarg/hlu/hlu.h> #include <hfile for Workstation class object> int NhlNewColor( int workid, float red, float green, float blue )
subroutine NhlFNewColor(workid, red, green, blue, indx) integer workid, indx real red, green, blue
Type name: NhlTErrorTypes Definition: typedef enum _NhlErrType{ NhlFATAL = -4, /* "FATAL" */ NhlWARNING = -3, /* "WARNING" */ NhlINFO = -2, /* "INFO" */ NhlNOERROR = -1 /* "NOERROR" */ } NhlErrorTypes;
This function is used to add a new color to a Workstation object's colormap. NhlNewColor returns a an HLU color index of its own choosing from among those currently unallocated by the Workstation object. To set a specific HLU color index you must use the function NhlSetColor. If the Workstation colormap is full an error message is generated, and the negative return value may be cast to the type NhlErrorTypes.
Value | Meaning --------+------------------------------------------------- NOERROR | function successful --------+------------------------------------------------- INFO | minor recoverable error --------+------------------------------------------------- WARNING | recoverable error --------+------------------------------------------------- FATAL | function failed; continuing the program | may result in core dump
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?