:
QUICKIE HELP FILE FOR SBASIC GRAPHICS

1. SET TO USER 5

2. GO TO WS (WORDSTAR)

3. TYPE AN N (NON-DOCUMENT FILE) AND GIVE NEW FILE NAME

4. FIRST LINE WOULD BE $INCLUDE GRAPH1 IF GRAPH1.BAS TO BE USED

5. TYPE IN PROGRAM

6. SEE SUBSEQUENT VIEWS FOR MORE DETAILS

PROCEDURES IN GRAPH1.BAS

PAUSE
SET.ON
SET.OFF
POSITION
PIXON
PIXOFF
LINEON
LINEOFF
CLEAR.SCREEN
CIRCLE
RECTANGLE
SQUARE
BAR
ONE_THREE
ONE_TWO
NEXT_VIEW

POOP ON GRAPH1 PROCEDURES

CIRCLE
ENTER AS:
CIRCLE V1,H1,RADIUS
WHERE V1 AND H1 POSITION VERTICALLY AND HORIZONTALLY
EXAMPLE:
CIRCLE 15,15,10

RECTANGLE
ENTER AS:
RECTANGLE V2,H2,HEIGHT,WIDTH
WHERE V2 AND H2 POSITION VERTICALLY AND HORIZONTALLY
EXAMPLE:
RECTANGLE 30,10,20,40

POOP ON GRAPH1 PROCEDURES (CONTINUED)

SQUARE
ENTER AS:
SQUARE VERTR,HORZ,SIDE
WHERE VERT AND HORZ POSITION VERTICALLY AND HORIZONTALLY
EXAMPLE:
SQUARE 60,20,30

POOP ON GRAPH1 PROCEDURES (CONTINUED)

BAR
ENTER AS:
BAR REF.Y,REF.X,HEIGHT,WIDTH,DEPTH,INSIDE,VERT.P,HORZ.P
EXAMPLE:
BAR 20,130,50,10,15,1,1,1

NOW LET US LOOK AT ALL THAT:

MAY AS WELL START FRESH ON A NEW VIEW

POOP ON GRAPH1 PROCEDURES (CONTINUED)

BAR

REF.Y MEANS REFERENCE ON Y AXIS AND CAN GO AS HIGH AS 96, WHICH IS
24 LINES TIMES 4 - THE SIZE OF YOUR SCREEN.

VERT.P DETERMINES IF REF.Y IS BASED FROM TOP DOWN OR BOTTOM UP.
INSERT A "1" FOR A TOP BASE OR "-1" FOR BOTTOM BASE

REF.X MEANS REFERENCE ON X AXIS AND CAN GO AS HIGH AS 160, WHICH IS
80 COLUMNS TIMES 2 - THE SIZE OF YOUR SCREEN.

HORZ.P DETERMINES IF REF.X IS BASED FROM LEFT TO RIGHT OR FROM RIGHT
TO LEFT. INSERT A "1" FOR LEFT BASE OR "-1" FOR RIGHT BASE.

MORE ON NEXT VIEW.....

POOP ON GRAPH1 PROCEDURES (CONTINUED)
BAR (CONTINUED)

HEIGHT IS HOW HIGH THE BAR IS TO BE AND CAN BE UP TO 96 IF YOU ARE
USING A 0 BASE FOR THE BOTTOM OF THE BAR.

WIDTH IS HOW WIDE THE BAR IS TO BE. SPECIFY 10 FOR 5 COLUMN
WIDTH, ETC.

DEPTH IS TO PROVIDE 3D EFFECT AND YOU SPECIFY 6 FOR 3 COL DEPTH, ETC.

INSIDE DETERMINES IF BAR WILL BE SHADED. USE A "1" FOR SHADED AND
A "0" FOR NO SHADING.

EXPECT TO EXPERIMENT UNTIL YOU GET THE HANG OF IT.

POOP ON GRAPH1 PROCEDURES

PAUSE PRINTS OUT A MESSAGE TO PRESS RETURN TO CONTINUE. YOU SHOULD
USE POSITION FIRST:

POSITION 24,3
PAUSE

SET.ON AND SET.OFF TURN ATTRIBUTES ON AND OFF

POSITION SETS THE CURSOR WHERE YOU WANT IT AND REQUIRES VERTICAL
AND HORIZONTAL PARAMETERS. NOT THAT POSITION USES ACTUAL LINE AND
COLUMN NUMBERS AND NOT 4 TIMES IT OR 2 TIMES IT.

PIXON AND PIXOFF TURN PIXELS ON AND OFF


POOP ON GRAPH1 PROCEDURES (CONTINUED)

LINEON AND LINEOFF ARE USED TO DRAW AND TO ERASE LINES.
LINEON 2,2,2,159 WOULD DRAW A HORIZONTAL LINE AT LINE 2 OF YOUR SCREEN.

LINEOFF 2,2,2,80 WOULD ERASE THE FIRST HALF OF THE LINE MENTIONED
JUST ABOVE.

CLEAR.SCREEN WOULD JUST CLEAR THE SCREEN.

ONE_THREE WOULD DRAW A BLANK ORGANIZATION CHART WITH ONE BOX
ABOVE AND THREE BOXES BELOW.

ONE_TWO WOULD DRAW A BLANK ORGANIZATION CHART WITH ONE BOX ABOVE
AND TWO BOXES BELOW.

NEXT_VIEW WOULD PROVIDE A POSITION 24,3  FOLLOWED BY A PAUSE AND
THEN A CLEAR.SCREEN FOLLOWED BY A POSITION 24,3

