Origin.htm 1.0 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>Origin x,y</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. x = x offset value <br />
  13. y = y offset value
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. This command sets a point of origin for all subsequent drawing commands. This can be positive or negative.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/Origin.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. ; Origin example <br />
  30. Graphics 800,600,16 <br />
  31. <br />
  32. ; Offset drawing options with origin command -200 in each direction <br />
  33. Origin -200,-200 <br />
  34. <br />
  35. ; Wait for ESC to hit <br />
  36. While Not KeyHit(1) <br />
  37. <br />
  38. ; Draw an oval - SHOULD be at the exact center, but it isn't! <br />
  39. Oval 400,300,50,50,1 <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=Origin&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  48. </html>