Oval.htm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>Oval x,y,width,height[,solid]</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. x = x coordinate on the screen to draw the oval <br />
  13. y = y coordinate on the screen to draw the oval <br />
  14. width = how wide to make the oval <br />
  15. height = how high to make the oval <br />
  16. [solid] = 1 to make the oval solid
  17. </td>
  18. </tr>
  19. </table>
  20. <h1>Description</h1>
  21. <table>
  22. <tr>
  23. <td>
  24. Use this to draw an oval shape at the screen coordinates of your choice. You can make the oval solid or hollow.
  25. </td>
  26. </tr>
  27. </table>
  28. <h1><a href=../2d_examples/Oval.bb>Example</a></h1>
  29. <table>
  30. <tr>
  31. <td>
  32. ; Oval example <br />
  33. Graphics 800,600,16 <br />
  34. <br />
  35. ; Wait for ESC to hit <br />
  36. While Not KeyHit(1) <br />
  37. ; Set a random color <br />
  38. Color Rnd(255),Rnd(255),Rnd(255) <br />
  39. ; Draw a random oval <br />
  40. Oval Rnd(800),Rnd(600),Rnd(100),Rnd(100),Rnd(0,1) <br />
  41. Wend <br />
  42. </td>
  43. </tr>
  44. </table>
  45. <br>
  46. <a target=_top href=../index.htm>Index</a><br>
  47. <br>
  48. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Oval&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  49. </html>