<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Colorf::CL_Colorf - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_Colorf::CL_Colorf</h1> <p> Constructs a black and fully transparent color. Construct a CL_Colorf out of a given byte based CL_Color Constructs a color.</p> <pre> CL_Colorf(); CL_Colorf( const CL_Color& color); CL_Colorf( float r, float g, float b, float a = 1.0f); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>red</i></dt><dd>Red color component.</dd> <dt><i>green</i></dt><dd>Green color component.</dd> <dt><i>blue</i></dt><dd>Blue color component.</dd> <dt><i>alpha</i></dt><dd>Alpha (transparency) color component.</dd> </dl> <p><b>Detailed description:</b></p> <p>Color components are specified in the range 0.0f to 1.0f.</p> <p>An alpha value of 0.0f means complete transparency, while 1.0f means completely opaque (solid).</p> <p><b>See also:</b></p> <p><a href="CL_Colorf.html">CL_Colorf</a> | <a href="CL_Color.html">CL_Color</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->