'I know this code is extremely messy and makes absoloutely no sense to anyone, 'But it was originally programmed for only myself. '-----------------------------------Documentation starts here-------------- 'VGA Paint 'By 'Timothy culberson 'For QBasic programmers 'April, 1995 'Complete documentation 'Welcome Quick Basic programmer to the painting program made in Quick Basic. 'This Program will allow you to paint neat logos and graphics you can use with 'your BASIC programs using the Bsave and Bload commands in Basic. Actually, it 'won't allow you to do much of anything, but anyways...here it is. 'How does it work? 'The drawing screen: 'This is where you'll be painting in. It is an area 150 pixels by 120 pixels. 'The NEW button: 'This will clear the whole drawing screen 'The QUIT button: 'This quits the program 'The COLOR button: 'This changes the color. The color is shown along the palette bar at the 'bottom of the screen and the box outline at the bottom of the screen. 'The left mouse button advances the color and the right mouse button decreases 'the color along the palette bar. 'The SAVE button: 'This button will save your waork with the extension .RAD 'The LOAD button: 'This button will load a previously saved work with the extension .RAD 'The SQUARE button: 'This button will change the size of the drawing square. The left mouse 'button will increase the size and the right mouse button will decrease the 'size. The size is shown at the bottom of the square. 'How to Bload your work in your Qbasic programs....the source code: 'Loading you program from memory is very easy. '1] Create a drawing in VgaPaint '2] Place the source code into your QB program wherever you want it. '3] Watch the cool thing! 'Source Code: how is it done? 'SCREEN 13 '^^^^^^^^^^^^^^^ 'This sets the graphic screen to 320/200 vga 256 colors. 'DIM cub(1 TO 9000) 'DEF SEG = VARSEG(cub(1)) 'BLOAD "c:\qb\" + "R5" + ".RAD", VARPTR(cub(1)) ' ^^^^^^ ^^^--->filename ' Path of file 'DEF SEG '^^^^^^^^^^^^ 'This will load it up. 'PUT (80, 25), cub, PSET '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'This line will put the graphic at desired X,Y coordinates. 'And that's it. 'E -mail: 'culberson@mis.nb.ca '------------------------------Code starts here------------------------------- REM $INCLUDE: 'QB.BI' 'LINE (160, 0)-(220, 30), 32, B 'LINE (160, 0)-(220, 30), 32, B 'NEW TOOL 'LINE (250, 0)-(285, 20), 32, B 'SAVE TOOL 'LINE (225, 25)-(285, 45), 32, B 'LOAD TOOL 'LINE (160, 50)-(220, 70), 32, B 'SQUARE SIZE TOOL 'LINE (225, 50)-(285, 70), 32, B 'LOCATE 10, 23: PRINT SS 'QUIT... 'LINE (225, 0)-(285, 20), 32, B 'color and SQUARE STATUS... "FILENAME(8 CHARACTERS MAX):"""".RAD"" "" ""D2U3R1L2RU"'***************DRAWING AREA****************AND DRAWING TOOL '***************************PALLETTE "D20"'***************************DRAW BUTTONS************************************** 'COLOR BUTTON "COLOR" 'NEW BUTTON "NEW" 'save button draw "SAVE" 'LOAD IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "LOAD" 'SQUARE SIZE BUTTON DRAW "SQUARE" 'QUIT BUTTON DRAW "QUIT""D10""D10""D10""D10""D10""D10""D10""D10""D10""D10""D10""D10""D10""D10""Apoky!""Apoky!""FILENAME(8 CHARACTERS MAX):"""".RAD"" "