30 return((c->
r<0)||(c->
g<0)||(c->
b<0));
90 fprintf(f,
"%f %f %f",c->
r,c->
g,c->
b);
void SetBlue(double b, Tcolor *c)
Changes the blue component of a color.
void PrintColor(FILE *f, Tcolor *c)
Prints the color.
boolean NullColor(Tcolor *c)
Identifies a non-valid color.
double GetGreen(Tcolor *c)
Gets the green component of a color.
void CopyColor(Tcolor *c_dst, Tcolor *c_src)
Copy constructor.
void SetGreen(double g, Tcolor *c)
Changes the green component of a color.
void ScaleColor(double s, Tcolor *c)
Scales a color.
void SetRed(double r, Tcolor *c)
Changes the red component of a color.
double GetRed(Tcolor *c)
Gets the red component of a color.
Definition of the Tcolor type and the associated functions.
void DeleteColor(Tcolor *c)
Destructor.
void NewColor(double r, double g, double b, Tcolor *c)
Constructor.
double GetBlue(Tcolor *c)
Gets the blue component of a color.
void CostColor(double cost, double minCost, Tcolor *c)
Definees a color in function of a cost.
Follow us!