Draw Examples // Create a new line between x = 50.0, y = 30.0 //
// and x = 200.0, y = 100.0 ( and line width of 1.0 ) // Line myLine( 50.0, 30.0, 200.0, 100.0 ); // Draw that line to the screen in black // myLine.Draw( Rgba::BLACK ); // Draw that line to the screen in light yellow // myLine.Draw( Rgba( 1.0, 1.0, 0.7 )); // Do the same as above but with a single code line // Line( 50.0, 30.0, 200.0, 100.0 ).Draw( Rgba( 1.0, 1.0, 0.7 )); // Render a gradient-filled line with the color changing from red to yellow // myLine.Draw( Rgba::RED, Rgba::YELLOW ); |