Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

color.h

Go to the documentation of this file.
00001 #ifndef COLORH
00002 #define COLORH
00003 
00004 #include <stdio.h>
00005 
00021 typedef struct {
00022   double r; 
00023   double g; 
00024   double b; 
00025 } Tcolor;
00026 
00027 
00038 void NewColor(double r,double g,double b,Tcolor *c);
00039 
00040 
00049 void CopyColor(Tcolor *c_dst,Tcolor *c_src);
00050 
00051 
00060 void SetRed(double r,Tcolor *c);
00061 
00070 void SetGreen(double g,Tcolor *c);
00071 
00080 void SetBlue(double b,Tcolor *c);
00081 
00090 double GetRed(Tcolor *c);
00091 
00100 double GetGreen(Tcolor *c);
00101 
00110 double GetBlue(Tcolor *c);
00111 
00126 void PrintColor(FILE *f,Tcolor *c);
00127 
00135 void DeleteColor(Tcolor *c);
00136 
00137 #endif
00138