Public Members 
 
ddgColor3*  find (float key)

   Find a colour by gradient index.

 
ddgColorNode*  findnode (float key)

   Find a colour node by gradient index.

 
ddgColorNode*  findnode (char* name)

   Find a colornode by name.

 
ddgColor3*  find (char* name)

   Find a color by name.

 
ddgColorNode*  findNode (float key)

   Find a colour node by gradient index.

 
void  spread (ddgColor3 *st, ddgColor3 *en, float stk, float endk, unsigned int n )

   Create a spread of colors starting from st to en, with n entries.

 
ddgColor3*  find (float key)

   Find a colour by gradient index.

 
ddgColorNode*  findnode (float key)

   Find a colour node by gradient index.

 
ddgColorNode*  findnode (char* name)

   Find a colornode by name.

 
ddgColor3*  find (char* name)

   Find a color by name.

 
ddgColorNode*  findNode (float key)

   Find a colour node by gradient index.

 
void  spread (ddgColor3 *st, ddgColor3 *en, float stk, float endk, unsigned int n )

   Create a spread of colors starting from st to en, with n entries.

 
void  RGBToHSV ( double r, double g, double b, double *h, double *s, double *v)

   Given: r,g,b each in [0,1] Desired: h [0,360), s and v in [0,1] except if s=0, then h= UNDEFINED, which is some constance defined with a value outside the interval [0,360].

 
bool  HSVToRGB (double *r, double *g, double *b, double h, double s, double v)

   Given: h in [0,360] or UNDEFINED, s and v in [0,1] Desired: r,g,b each in [0,1].

 
void  RGBToHLS ( double r, double g, double b, double *h, double *l, double *s)

   Given: r,g,b each in [0,1] Desired: h [0,360), l and s in [0,1] except if s=0, then h= UNDEFINED, which is some constance defined with a value outside the interval [0,360].

 
bool  HLSToRGB (double *r, double *g, double *b, double h, double l, double s)

   Given: h in [0,360] or UNDEFINED, l and s in [0,1] Desired: r,g,b each in [0,1].
