home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / DOC / TR.LOUT / ch3.13 < prev    next >
Text File  |  1994-01-25  |  2KB  |  58 lines

  1. @Section
  2.    @Title { "@Rotate" }
  3.    @Tag { rotate }
  4. @Begin
  5. @PP
  6. rotate.sym @Index { @@Rotate symbol }
  7. rotation @Index { Rotation of object }
  8. The symbol @@Rotate will rotate its
  9. right parameter counterclockwise an amount given in degrees (positive or
  10. negative) by its left parameter.  For example,
  11. @ID @Code {
  12. "30d  @Rotate  { hello, world }"
  13. }
  14. has result
  15. @ID {
  16. 30d  @Rotate  { hello, world }
  17. }
  18. Before rotating the object, @@OneCol and @@OneRow are applied to it.  The
  19. result is a rectangle whose marks pass through the point where the
  20. original marks crossed:
  21. @ID {
  22.    @ShowMarks
  23.    { 0.6c @Wide 0.3c @High ^| 2.2c @Wide ^/ 0.2c @High }
  24.  
  25. &4m => &4m
  26.  
  27.    @ShowMarks
  28.    {
  29.     30d @Rotate
  30.     {    @ShowMarks
  31.         { 0.6c @Wide 0.3c @High ^| 2.2c @Wide ^/ 0.2c @High }
  32.     }
  33.    }
  34. }
  35. As this example shows, rotation by an angle other than a multiple of
  36. ninety degrees introduces quite a lot of white space.  So, for example, the
  37. result of
  38. @ID {
  39. @Code { "-30d" "@Rotate" 30d "@Rotate" }  @I object
  40. }
  41. is a much larger object than {@I object}, despite the fact that one
  42. rotation cancels the other.
  43. @PP
  44. Rotation of objects containing receptive and recursive symbols is
  45. permitted, but for angles other than multiples of ninety degrees it is
  46. best to make the size of the rotated object clear with @@Wide and
  47. @@High symbols:
  48. @ID @Code {
  49. "30d @Rotate 5i @Wide 4i @High"
  50. "{   //1i @TextPlace"
  51. "    //1i"
  52. "}"
  53. }
  54. This is because for angles other than multiples of ninety degrees the
  55. space available for @Code "@TextPlace" to occupy is indeterminate, and
  56. the result is poor.
  57. @End @Section
  58.