Line.htm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>Line x,y,x1,y1</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. x=starting x location of the line <br />
  13. y=starting y location of the line <br />
  14. x1=ending x location of the line <br />
  15. y1=ending y location of the line
  16. </td>
  17. </tr>
  18. </table>
  19. <h1>Description</h1>
  20. <table>
  21. <tr>
  22. <td>
  23. This command draws a line, in the current drawing color, from one point on the screen to another (from the x,y to x1,y1 location). See example.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/Line.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; Line example <br />
  32. Graphics 800,600,16 <br />
  33. <br />
  34. ; Wait for ESC to hit <br />
  35. While Not KeyHit(1) <br />
  36. ; Set a random color <br />
  37. Color Rnd(255),Rnd(255),Rnd(255) <br />
  38. ; Draw a random line <br />
  39. Line Rnd(800),Rnd(600),Rnd(800),Rnd(600) <br />
  40. Wend <br />
  41. </td>
  42. </tr>
  43. </table>
  44. <br>
  45. <a target=_top href=../index.htm>Index</a><br>
  46. <br>
  47. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Line&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  48. </html>