For technical support and purchase information please visit our web site
at http://www.tbaiana.com , or send an e-mail to xtras@tbaiana.com
------------------------
Registering DrawXtra
------------------------
To register DrawXtra, choose "DrawXtra-->Register" from the Xtras menu. You
will be presented with a dialog box in which you should type your serial
number. Although this writes a registration file to disk, you do not need
to distribute any files with your projectors except for the actual DrawXtra
files.
--------------------------------------
Using DrawXtra -- A Quick Tutorial
--------------------------------------
1. From the Insert menu, choose "Tabuleiro Xtras-->DrawXtra" and this will
place a new DrawXtra castmember in the cast.
2. Double-click on the newly-created DrawXtra castmember and specify the
height and width dimensions for the castmember.
3. Finally, drag the DrawXtra castmember anywhere on the stage.
4. At this point, you can now use DrawXtra functions and properties to
enable interactive or algorithmic drawing.
--------------------------------------
Packed Colors
--------------------------------------
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.
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.
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.
For example:
set packedColor = GetPixel( member ╥canvas╙, 30, 30 )