home *** CD-ROM | disk | FTP | other *** search
/ Op verkenning van het heelal / CD-ROM.BIN / XTRAS / DRAWXTRA.X32 / TEXT / TEXT_HELP < prev    next >
Text File  |  1998-11-20  |  3KB  |  78 lines

  1. ----------------------
  2. Purchasing DrawXtra
  3. -----------------------
  4.  
  5. For technical support and purchase information please visit our web site
  6. at http://www.tbaiana.com , or send an e-mail to xtras@tbaiana.com
  7.  
  8. ------------------------
  9. Registering DrawXtra
  10. ------------------------
  11.  
  12. To register DrawXtra, choose "DrawXtra-->Register" from the Xtras menu. You
  13. will be presented with a dialog box in which you should type your serial
  14. number. Although this writes a registration file to disk, you do not need
  15. to distribute any files with your projectors except for the actual DrawXtra
  16. files.
  17.  
  18. --------------------------------------
  19. Using DrawXtra -- A Quick Tutorial
  20. --------------------------------------
  21.  
  22. 1. From the Insert menu, choose "Tabuleiro Xtras-->DrawXtra" and this will
  23. place a new DrawXtra castmember in the cast.
  24.  
  25. 2. Double-click on the newly-created DrawXtra castmember and specify the
  26. height and width dimensions for the castmember.
  27.  
  28. 3. Finally, drag the DrawXtra castmember anywhere on the stage.
  29.  
  30. 4. At this point, you can now use DrawXtra functions and properties to
  31. enable interactive or algorithmic drawing.
  32.  
  33. --------------------------------------
  34. Packed Colors
  35. --------------------------------------
  36. Since Director does not have any color type variables and because they are sorely needed (indexed palette colors are inaccurate in Windows and generally limiting), DrawXtra uses its own ╥packed╙ color format which are integers that describe an RGB value with each color channel having a value of 0-255. Packed colors are generally unintelligible but you can use some DrawXtra functions to determine their meaning when necessary.
  37.  
  38. RGB colors are additive colors, meaning that the more of each color channel that is displayed, the closer to white you will get. A color with red = 255, blue = 255 (255,255,255) and green = 255 will be pure white. An RGB value of (0,0,0) will be black. An RGB value of (255,0,0) will be a pure red color. You get the idea.
  39.  
  40. The GetPixel() function always returns a packed color. A packed color╒s individual color channels may then be extracted using the GetRedChannel(), GetBlueChannel() and GetGreenChannel() functions.
  41.  
  42. For example:
  43.  
  44. set packedColor = GetPixel( member ╥canvas╙, 30, 30 )
  45.  
  46. set r = GetRedColor(member ╥canvas╙, packedColor)
  47. set b = GetRedColor(member ╥canvas╙, packedColor)
  48. set g = GetRedColor(member ╥canvas╙, packedColor)
  49.  
  50. put ╥RGB = (╥ & string(r) & ╥,╙ & string(g) & ╥,╙ & string(b) & ╥)╙
  51.  
  52. The converse operation can be performed by calling PackColor(). This will create a packed color from red, green and blue color values.
  53.  
  54. For example:
  55.  
  56. -- To create a pure blue packed color:
  57. set packedColor = PackColor( member ╥canvas╙, 0, 0, 255 )
  58.  
  59. -------------------------------------
  60. Additional Technical Support and Help
  61. -------------------------------------
  62.  
  63. You can invoke the on-line help system for DrawXtra by choosing
  64. "DrawXtra-->Help" from the Xtras menu.
  65.  
  66. To get a list of all of the DrawXtra castmember properties, type:
  67.  
  68. put the propertyNames of member x
  69.  
  70. in the Message window.
  71.  
  72. To get a list of all of the DrawXtra functions, type:
  73.  
  74. put the functionNames of member x
  75.  
  76. in the Message window.
  77.  
  78. -------------------------------------