Text.htm 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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>Text x,y,string$,[center x],[center y]</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. x = starting x coordinate to print text <br />
  13. y = starting 4 coordinate to print text <br />
  14. string$ = string/text to print <br />
  15. center x = optional; true = center horizontally <br />
  16. center y = optional; true = center vertically
  17. </td>
  18. </tr>
  19. </table>
  20. <h1>Description</h1>
  21. <table>
  22. <tr>
  23. <td>
  24. Prints a string at the designated screen coordinates. You can center the text on the coordiates by setting center x/center y to TRUE. This draws the text in the current drawing color. <br />
  25. <br />
  26. Note: Printing a space with text will NOT render a block - a space is an empty value. So printing " " will not make a box appear.
  27. </td>
  28. </tr>
  29. </table>
  30. <h1><a href=../2d_examples/Text.bb>Example</a></h1>
  31. <table>
  32. <tr>
  33. <td>
  34. ; Text example <br />
  35. <br />
  36. ; enable graphics mode <br />
  37. Graphics 800,600,16 <br />
  38. <br />
  39. ; wait for ESC key before ending <br />
  40. While Not KeyHit(1) <br />
  41. ;print the text, centered horizontally at x=400, y=0 <br />
  42. Text 400,0,"Hello There!",True,False <br />
  43. Wend <br />
  44. </td>
  45. </tr>
  46. </table>
  47. <br>
  48. <a target=_top href=../index.htm>Index</a><br>
  49. <br>
  50. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Text&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  51. </html>