                            Ronald E Brown
                            1418 US 19
                            Holiday Fl.,34691
                            Phone 813-942-9104
                            e-mail solar@gzero.com
                             
To use the search function in your editor type in the no.preceeded by the part                             
letter. Example: 1a  should get you to 1a in the document.
                             
                             Contents

                             part a

Intro........................1a
Registration.................2a
program advantages...........3a
General Info.................4a                             
                             
                             part b

                            Drawtools

Box..........................1
BoxFilled....................2
Circle.......................3
CircleFilled.................4
Elipse.......................5
Freedraw1....................6
Freedraw2....................7
FreeSpuare...................8
FreeSquare Set...............9
LineDotted...................10
Line Medium..................11
Line Thick...................12
Line Thin....................13
Paint........................14
Text.........................15

                             part c

                              Opperations

About........................1       e
Close Files Window...........2
Delete File..................3
Erase All....................4
Graph Off....................5
Header ON....................6
Open Files...................7
Palette......................8
Quit.........................9
Save.........................10
Save As Source Code..........11
Undo Last....................12

                             part d

How to send drawings Email
or through conferences.......1

                             part e

The future...................1

                             1a


Please keep the two programs drabas12 and drasc7 in seperate directories
so you dont get screen 7 confused with screen 12 drawings.Drasc7 only comes
with the registered version.

This program will save people a lot of time if they are trying to program 
graphics by writing syntax. So if your time is worth anything and you are 
writing basic code you will definitly want to purchase a copy of this program. 
If your time isnt worth anything then don't bother.

I have been through many paint programs and have found one aggrivating thing
the different file formats will not allow you to veiw a picture without a 
copy of some kind of veiwer or program that you can veiw them with.

There is one thing that just about all Ibm computors have available is dos.
If you have version 5.0 or better you get a copy of qbasic. So I decided to 
make a program that would generate the drawing files so they could run in the
qbasic interpreter.

I am sure that some of you will have many different Ideas as I have that 
this type of program can be used for so if you get an Idea and want to use
the source code and dont want to reinvent the wheel then you want to contact
me and we will negeotiate a price on the code.
 
Another nice feature of the program is that you can enter text and have gra-
phics. They say a picture is worth a thousand words. Well I say that a 
picture with a few words is worth everything when it comes to explaining
somthing to a person.

If you own a basic compiler drawbasic will let you make executable drawings.
                                
                                2a


I have decided on $29.95 including shipping and handling for any where in the
United states for this version and some kind of discount will be given if you
own this version and want to purchase the next version.  To order see the 
.doc and send $29.00 in a check or money order. No cash please. I have decided
to add a student discount. When ordering if you send me a copy of your report 
card I will deduct $9.00 off the price. Just send me 20.00 and a copy of 
your report card. All students included.
             
With the registered version you will be able to do over 10,000 lines in the
Draw Basic program with 640k with no tsrs.


                                 3a


With registering you get screen 7 as well as screen 12.
Advantages and uses of this program:

             1. The files can be read by any qbasic interperater. The most
             universal way to communicate drawings.. The file compresses to 
             almost 80% of the .bas file using pkzip and are generally small-
             er and with effort can be kept very small.
             3. A program can be written that would support full direct 
             graphics in a BBS system.
             4. The program is 40 times faster than typing graphics syntax
             into the computor for basic programing.
             5. The code that the program generates is compatable with nearly
             all basics.
             6. Each line, circle, box, ect can be edited either in the prog-
             ram or in the interperater ecdnvironment.
             7. Animation,graphics and text can be used in the same program
             that generates the basic code so you can run it in your basic
             interperater.
             8.If you have a basic compiler you will be able to make execut-
             able drawings.
                                        
                                        4a

        The program opens up with the main menu screen. On the left hand is 
        a window labelled **Drawtools** In the lower section is a palette 
        requestor window and on the right a files window.
        New:
        To palette has been moved to the draw screen. Just click on the color
        with the left mouse buttonn to change the color. 
        
        
        We will start with the drawtools box and go through each tool starting
        at the top. Clicking the left mouse button on any drawtool sends you 
        to the draw screen. Clicking the right mouse button while at the draw-
        screen sends you to the main menu.
        
        To remove the two drawings in the screen when running drabas12 either
        rename the drawings at the command line. Example:  
               
                rename title1.exe (somthing else).exe
        You can also del them this will remove them as well.

        If you want to use your own drawings just rename them to the names
        above. They have to be a compiled or executable drawing.

        I would like to list some of the things that might be confusing.

        WHEN DOING ANY AREA WITH THE FREEDRAW TOOLS THAT YOU INTEND TO PAINT
        MAKE SHURE FREESQUARE SET SPEED CONTROL IS SET TO 0.

        WHEN PAINTING MAKE SURE THAT THE AREA YOU ARE GOING TO PAINT IS 
        ENCLOSED WITH THE COLOR THAT YOU ARE GOING TO PAINT WITH.

        THE FIRST TIME YOU SELECT A TOOL AT THE BEGINNING OF A DRAWING                 
        SESSION YOU WILL HAVE TO SELECT A COLOR FROM THE DRAW SCREEN. THIS
        ARIVES AT COLOR ATRIBUTE O WHICH IS BLACK.


                        

********************************************************************************
                        
                        ****   Drawtools Menu   ****

      1b .box   Description: 
                Draws the perimeter of a rectangular box. 
        
                Instructions:
                To use this tool just click it with the left mousebutton
                and you will go to the drawscreen. To draw a box just press
                and hold the left mouse button on the corner that you want the box to 
                box to start from and drag it to the oppisite corner you want 
                the box to be drawn to and release the leftt mouse button. 
                There will be a flashing outline of of the box on the screen 
                this will be the box drawn when you release the left mouse 
                button.
        
      2b Boxfilled                 
                Description:
                Draws a rectangular box with color filled inside the peri-
        
                Instructions:
  
                To use this tool just click it with the left mousebutton
                and you will go to the drawscreen. To draw a box just press
                and hold the left mouse button on the corner that you want the box to 
                box to start from and drag it to the oppisite corner you want 
                the box to be drawn to and release the leftt mouse button. 
                There will be a flashing outline of of the box on the screen 
                this will be the box drawn when you release the left mouse 
                button.

       3b Circle 
                Description:
                Draws the circumference of a circle.

                Instructions: To use the circle tool from the main menu select
                Circle and click with the left mouse button. This takes you to 
                the drawscreen. Select where the center of the circle will be
                and press the left mouse button and hold and drag the mouse
                in the horizontal direction. There will be a flashing outline 
                of a circle on the screen. When you reach the disired size of
                the circle release the leftt mouse button and a circle will be
                drawn.

        4b Circlefilled
                Description:
                Draws a circle filled with the current selected color.

                Instructions: To use the circle tool from the main menu select
                Circle and click with the left mouse button. This takes you to 
                the drawscreen. Select where the center of the circle will be
                and press the left mouse button and hold and drag the mouse
                in the horizontal direction. There will be a flashing outline 
                of a circle on the screen. When you reach the disired size of
                the circle release the leftt mouse button and a circle will be
                drawn.
                        
        5b Elipse
                Description:
                Draws a perimeter of a elipse.

                Instructions:
                SIZING AND SETTING THE ASPECT RATIO OF THE ELIPSE IS DONE
                BY MOVING THE MOUSE CURSOR ALONG THE X AXIS.

                Press the left mousebutton and hold where you want the center
                of the elipse drag the  mouse till you reach the size of
                the elipse you want. A circle will be flashing on the screen
                then release the left mouse button.There will be nothing show-
                ing on the screen. Press the left mouse button again and hold
                by dragging it you will acheive the disired aspect ratio.
         
        6b Freedraw1:
                This draws a line on the screen that varys as your mouse
                direction varys. This line is 1 pixel thick.

                Instructions:
                Press left mouse button and draw with mouse. This line is 3 pixels
                thick.

        7b Freedraw2:
                This draws a line on the screen that varys as your mouse
                direction varys.

                Instructions:
                Press left mouse button and draw with mouse.
        8b Freesquare:       
                The freesquare tool sets squares on the screen. It is a draw-
                tool such as the ones that you have probably seen in other
                draw programs except you can set the size in pixels with the
                freesquare set selection on the tools menu.
        9b FreesquareSet:
                When selecting freesquareSet you are prompted with three 
                requestor boxes one at a time. The first requester box
                asks you for the height the second asks you for the width.
                The third sets the speed that the squares are put on the
                screen. If you have a fast computor you want to set the no.
                high say for 386 40 about 200. This was added to save code.
                This tool is very code consuming and should be used when
                the size of your drawing is not important.
        
        
        10b LineDot
                Description:
                Draws a dotted line from point to point>

                Instructions:
                Press left mouse button where you want your line to start
                and drag to you where you want it to end there will be a 
                flashing line when you reach where you the line to go  release 
                the left mouse button and it will draw a line.
        
        11b Line med
                Description:
                Draws a line that is twice as thick as LineThin

                Instructions:
                Press left mouse button where you want your line to start
                and drag to you where you want it to end there will be a 
                flashing line when you reach where you the line to go  release 
                the left mouse button and it will draw a line.

        12b Line Thick
                Description:
                Draws a line that is three times as thick as as LineThin.

                Instructions:
                Press left mouse button where you want your line to start
                and drag to you where you want it to end there will be a 
                flashing line when you reach where you the line to go  release 
                the left mouse button and it will draw a line.

        13b LineThin 
                Description:
                Draws a line from point to point.

                Instructions:
                Press left mouse button where you want your line to start
                and drag to you where you want it to end there will be a 
                flashing line when you reach where you the line to go  release 
                the left mouse button and it will draw a line.

         

        14b Paint
                THE AREA MUST BE COMPLETELY ENCLOSED BY THE COLOR THAT YOU ARE
                GOING TO PAINT BEFORE USING PAINT.

                There is a way to completely automate the paint but it borders
                all of the colors with another color I decided against it be-
                this border detracts from the drawing.

                Paints an area that is perimetered by the color that you want
                to paint. !!Warning the area must be completely enclosed with
                the color that you are going to paint. If it floods the whole
                area just use UndoLast

                Instructions:
                Point the mouse to the area to be filled and click the left 
                mouse button. The area is fill with the color that is selected
                and surrounded by the same color.

        15b Text 
                Description:
                This adds text to screen 12 with any color that is selected
                and the background color is set by the current color of 
                palette 0.
                
                Instructions:
                There will be a flashing cursor at the top left hand corner
                of the drawscreen. Use the up ,down, left, right arrow keys 
                to position the starting point of your text. Type in your 
                text and press enter. Press right mouse button to go back to
                the draw menu>

*****************************************************************************
                        
                        ****   Operations menu   ****
        1c About
                Description:
                This is copywrite info.
        2c Close Files Window 
                Description:
                This removes the files menu from the main menu screen.

                Instructions:
                Click the left mouse button.
        3c Delete File
                Opens a file menu. Select with left mouse button to delete.

        4c Erase All 
                This erases everything on the screen and allows you to start 
                a new drawing.
        5c Graph ON
          Graph OFF
                Description:
                This allows a graph to appear on the screen that will allow
                you to center and scale your drawing.
                
                Instructions:
                Click the left mouse button on the graph OFF this will change
                it to Graph ON and a graph will appear when you go to the
               draw screen.
        6c Header ON
          Header OFF
                Description:
                When you press the left mouse button  on the Drawtools menu
                you will go to the draw screen if before you went in the 
                Header ON was reading you will see a header. On the left
                you will see the coorinates of the mouse pointer. You are 
                in screen 12 so your full scale coordinates are 639 in the
                x direction and 480 in the y direction.
                Your will see the drawtool that has currently been selected
                from the main menu. 
                You will see the Line No. on the right hand side.
                The menu will be printed in the currently selected color.

                Instructins:
                Click the left mouse button on the header on until it turns
                into header OFF and the header will be gone when you go back
                to the drawscreen.

        7c Open Files

                Description:
                These are the files that you have generated by clicking the
                Save on the operations menu. To open double click on the file.
                They have the extension .dra.
        8c palette (screen 12 only)
                Description:
                This allows you to change any of the 16 color attributes to 
                any of a choice of 256,000 colors.  
                
                Instructions:
                Click palette on the main menu. You are then brought to a 
                requestor box that has three tall boxes and 2 boxes underneath
                them. Clicking in the top small box will  raise the 
                color level for one of the three primary colors. The highest 
                color level is 63. The level is put into the formula 
                colorvalue!=65536 * blue + 256 * green + red. When the
                colorvalue! is put into the palette statement it changes
                the color.
        9c Quit      
                Description:
                This quits your program.
                
                Intructions:
                Click left mouse button on Quit.

        
        
                 


        10c Save 
                Discription:
                This saves a drawing which can be loaded into drabas and
                edited or added to. The file extension for this is .dra.

                Instructions:
                Click the left mouse button a dialog box opens up and asks
                you the name of the file you must enter a legal dos file
                name or your drawing will not be saved. 
                You may veiw and your drawing by using the open files of the
                Operations menu.
        
        
        
        
        11c Save As Source Code      

                Description: 
                This is the one thing in the menu that makes the draw prog-
                ram unique. This Writes the drawing to disk in basic source
                code. I used the extension .bas this code can be loaded into 
                any basic interperater veiwed. The program is written for 
                screen 12 so you will only see the program in screen 12.
                        
                Instructions:      
                        On your qbasic interperater you can type 
                        (qbasic {filename.bas} and this should show you draw-
                        ing.If not some computors when the file ends do not 
                        have a (press any key to continue) when the file is
                        ended. You will have to enter this little bit of code
                        at the end of the drawing.
                        (do until inkey$ <> "": loop) this will stop the  
                        program from clearing the screen when it ends

                        If you want to open the drawing from within the qbasic
                        interperater just type qbasic at the command line and
                        when the qbasic editor appears on the screen select
                        files and then from the pulldown menu select open
                        then click on your drawing and a code should appear on
                        the screen. Select  the run menu and when it pulls 
                        down select start. YOur drawing should appear on the
                        screen. If it dosn't add this line of code at the end
                        of the drawing code. (do until inkey$ <> "": loop) 
                        
                        1. You selected the text mode and then went
                                back to the draw menu without entering any
                                text. What you have in your .cde drawing will
                                be 
                                LOCATE X,Y
                                PRINT ""
                                just delete these two lines and try to run
                                again. Delete all these lines.



        12c Undo Last 
                Description:
                This allows you to edit your drawing all the way back to the 
                beginning. If you use this all will be lost on the lines that
                are subtracted from the Line No. dialog box. It subtracts two
                lines at a time.

********************************************************************************
             Sending drawings through email or conferences

As far as my knowledge goes after doing endles hours of research that
draw basic is a unique draw program because it generates the basic 
source code syntax for graphics for most basic interperaters or 
compilers

This freeware version has been clipped to 35 lines to keep the con-
ferences from becoming overflowing with huge drawings.I have found 
that 35 lines is more than adequate for doing small schematic draw-
for electronics ,drawing maps of your locatation,and descriptive
pictures to use in explanations of opperations.

To use simply do a drawing and use the "save as source code" in the
draw basic program.This is saved as .cde file. This file should average 
between 500 to 1500 bytes in the unziped code. An unheard of file size
for a full size hi rezolution (screen 12)drawing. In the zipped code it
will zip anywhere from 90% to 65%. Full drawings from 85 bytes.
This may sound unbeleivable but do it for yourself and see. If you
e-mail someone a map or other picture. Simply include these instruct-
ions. Say your mailing this to Ed. Ed I have sent this drawing of a map 
on how to get to my place. Use your capture mode and get this file into 
a text file.If you are using dos 5.0 or greater you simply type 
qbasic (the name of your cap file). Delete all of the e-mail tags and 
select Run From the pull down menus and then Start.Walla, theres 
your map. Cool huh Ed.

So lets go through the steps of doing it. I am going to send myself a  
map of where I live. So Im leaving now to draw my map. See Ya.

Hi. I'm back it took 10 minutes to do my map. You wanna see it in
code. Okay. Here it is. 
SCREEN 12
LINE (0, 0)-(0, 0), 0       '<- need to tweek the
LINE (0, 0)-(0, 0), 15, BF  '<- generator not needed
LINE (410, 471)-(410, 471), 4, BF
LINE (589, 468)-(589, 468), 13, BF
LINE (29, 65)-(573, 71), 13, BF
LINE (123, 14)-(125, 330), 13, BF
LINE (539, 16)-(540, 333), 13, BF
LINE (452, 467)-(452, 467), 6, BF
LINE (352, 88)-(450, 124), 6, BF
LINE (408, 230)-(479, 249), 6, BF
LINE (251, 90)-(305, 123), 6, BF
LINE (427, 465)-(427, 465), 5, BF
LINE (592, 470)-(592, 470), 13, BF
LINE (331, 70)-(334, 193), 13, BF
COLOR 13
LOCATE 3, 33
PRINT "US 19          1418 us 19, Holiday Fl"
COLOR 13
LOCATE 13, 6
PRINT "flora                                                Panorama"  
COLOR 13
LOCATE 3, 18
PRINT "Drive in"
COLOR 13
LOCATE 4, 18
PRINT "Theatre"
COLOR 13
LOCATE 13, 46
PRINT "The Ronald Brown's"
COLOR 13
LOCATE 14, 45
PRINT "of Holiday Fl House"
COLOR 13
LOCATE 9, 45
PRINT "cycle world"
LINE (0, 0)-(0, 0), 0
LINE (91, 190)-(121, 170), 13
LINE (121, 170)-(100, 170), 13
LINE (119, 170)-(117, 197), 13
LINE (539, 203)-(616, 205), 13
LINE (538, 203)-(549, 209), 13
LINE (539, 202)-(542, 193), 13
LINE (130, 20)-(213, 61), 13, B
Ok so now I going into my bbs and send myself the map to myplace.
First I call them and sign on and then I goto the e-mail board.
Since I have two bbs's going Ill mail it from gzero to genie.
So Im at e-mail. I type in the address that I am sending it to.
b.ronald1@genie.com  .So I type in "heres that message that you
are going to send yourself.

I now use my telix and upload the drawing in the body of the message 
and use whatever the BBS' method of sending e-mail . I going off to 
do it so ILL  see ya in a minute.
Well I just sent myself that map it will take about 2 hours to get it
so Im going to ride my bike to the gulf and go for a swim. See ya when
I get back.
Well I just captured the message from Genie and here is what I got.
The lines that have the "'"in front of them are the lines you want to 
delete to see the drawing. Putting the apostraphi will do the same 
thing.They did not come this way I put them there to identify things 
youll need to delete before useing your basic interperater
'2
'Queue#    Item  From         Length   Sent   Subject
 '    1 3954870  INTERNET#        69 95/07/09 Here is that map of your 
'INTERNET# Document Id: UX010.BUX0038422
'Item    3954870                 95/07/09        07:28
'From:   SOLAR@GZERO.COM@INTERNET#       COMM INTERNET GWY
'To:     B.RONALD1                       Brown Ronald
'Sub: Here is that map of your place
'Here is that map
SCREEN 12
LINE (0, 0)-(0, 0), 0
LINE (0, 0)-(0, 0), 15, BF
LINE (410, 471)-(410, 471), 4, BF
LINE (589, 468)-(589, 468), 13, BF
LINE (29, 65)-(573, 71), 13, BF
LINE (123, 14)-(125, 330), 13, BF
LINE (539, 16)-(540, 333), 13, BF
LINE (452, 467)-(452, 467), 6, BF
LINE (352, 88)-(450, 124), 6, BF
LINE (408, 230)-(479, 249), 6, BF
LINE (251, 90)-(305, 123), 6, BF
LINE (427, 465)-(427, 465), 5, BF
LINE (592, 470)-(592, 470), 13, BF
LINE (331, 70)-(334, 193), 13, BF
COLOR 13
LOCATE 3, 33
PRINT "US 19          1418 us 19, Holiday Fl"
COLOR 13
LOCATE 13, 6
PRINT "flora
                                                        Panorama"
COLOR 13
LOCATE 3, 18
PRINT "Drive in"
COLOR 13
LOCATE 4, 18
PRINT "Theatre"
COLOR 13
LOCATE 13, 46
PRINT "The Ronald Brown's"
COLOR 13
LOCATE 14, 45
PRINT "of Holiday Fl House"
COLOR 13
LOCATE 9, 45
PRINT "cycle world"
LINE (0, 0)-(0, 0), 0
LINE (91, 190)-(121, 170), 13
LINE (121, 170)-(100, 170), 13
LINE (119, 170)-(117, 197), 13
LINE (539, 203)-(616, 205), 13
LINE (538, 203)-(549, 209), 13
LINE (539, 202)-(542, 193), 13
LINE (0, 0)-(0, 0), 0
LINE (0, 0)-(0, 0), 13, B
LINE (130, 20)-(213, 61), 13, B
'=END=
So thats how to send drawings through conferences when in it is 
necessary to communicate with the use of pictures.

Draw basic coupled with a basic compiler also lets you make .exe
drawings. Yes thats right type in the name and "walla" you got a 
drawing. 
******************************************************************************
                                1e
                                
                                The Future


        Well comming up in the next few releases will be a magnafier,        
        bload, and different file formats,screen 13 with 256 colors choices. 
        Then there will be a source code generator that does animation. 
        On how far I go with this depends on the kind of support I get. If 
        I get good support I will take it to point and shoot programing 
        all the way.
       
       
       
       Thanks to all that read this
       The Ronald E Brown From Holiday FL
       Author of Draw Basic
All spelling and grammer checked by the new "If Sounds Good Do It"
spelling  and grammer checker. :)





