Sets
nameto the emptystring,use_nametofalse, andred_part,green_part, andblue_partto c.red_part, c.green_part, and c.blue_part, respectively.
const operator: bool operator== (const Color& c)Equality operator. Returns
true, if thered_parts,green_parts, andblue_partsof*thisand c are equal, otherwisefalse. Thenamesanduse_namesare not compared.
const operator: bool operator!= (const Color& c)Inequality operator. Returns
false, if thered_parts,green_parts, andblue_partsof*thisand c are equal, otherwisetrue. Thenamesanduse_namesare not compared.
Output operator. Writes the MetaPost code for the
Colortoout_streamwhen aPictureis output. This occurs when theColorhas been used as an argument to drawing or filling functions.If
use_nameistrue,nameis written toout_stream. Otherwise, “(red_part,green_part,blue_part)” is written toout_stream.