class="code hl_struct" href="structtgx_1_1_r_g_b32.html">tgx::RGB32</a> color5(color2); <span class="comment">// conversion: create a RGB32 color from RGB565, this yields RGB32(64, 128, 128, 255) - the alpha channel is set to fully opaque.</span></div>
<div class="line">color5.setOpacity(0.5f); <span class="comment">// adjust the alpha channel in order to make the color half transparent. Other channels are multiplied accordingly (pre-multiplied alpha). </span></div>
<div class="ttc" id="astructtgx_1_1_r_g_b