ne({10, 20}, {30, 40}, <a class="code hl_variable" href="_color_8h.html#aeff1cf4d983230263f1855ee9df91d25">tgx::RGB565_Red</a>); <span class="comment">// draw a fully opaque red line from (10,20) to (30, 40).</span></div>
<div class="line"> </div>
<div class="line">im.drawLine({10, 20}, {30, 40}, <a class="code hl_variable" href="_color_8h.html#aeff1cf4d983230263f1855ee9df91d25">tgx::RGB565_Red</a>, 0.5f); <span class="comment">// here opacity=0.5f so we draw a half-transparent red line instead.</span></div