- •Display Lists
- •Graphics Preparatory Commands gr.Open alpha, red, green, blue
- •Gr.Color alpha, red, green, blue, fill
- •Gr.Orientation mode
- •Gr.Screen width, height
- •Gr.Close
- •Gr.Front flag
- •Graphical Object Creation Commands gr.Line Object_number, x1, y1, x2, y2
- •Gr.Rect Object_number, left, top, right, bottom
- •Gr.Oval Object_number, left, top, right, bottom
- •Gr.Arc Object_number, left, top, right, bottom, start_angle, sweep_angle, fill_mode
- •Gr.Circle Object_number, X, y, radius
- •Bitmap Commands
Graphical Object Creation Commands gr.Line Object_number, x1, y1, x2, y2
Creates and inserts a line object into the Display List. The line will start at (x1,y1) and end at (x2,2). Returns the Display List object number for this line. This object will not be visible until the "gr.render" command is called. The gr.modify parameters for gr.line are: "x1", "y1", "x2" and "y2"
Gr.Rect Object_number, left, top, right, bottom
Creates and inserts a rectangle object into the Display List. The rectangle will be located within the bounds of the parameters. The rectangle will or will not be filled depending upon the "gr.color fill" parameter. Returns the Display List object number for this rectangle. This object will not be visible until the "gr.render" command is called. The gr.modify parameters for gr.rect are: "left", "top", "right" and "bottom".
Gr.Oval Object_number, left, top, right, bottom
Creates and inserts an oval shaped object into the Display List. The oval will be located within the bounds of the parameters. The oval will or will not be filled depending upon the gr.color fill parameter. Returns the Display List object number for this oval. This object will not be visible until the "gr.render" command is called. The gr.modify parameters for gr.oval are: "left", "top", "right" and "bottom".
Gr.Arc Object_number, left, top, right, bottom, start_angle, sweep_angle, fill_mode
Creates and inserts an arc shaped object into the Display List. The arc will be created within the rectangle described by the parameters. It will start at the specified Start_angle and sweep clockwise by the degrees through the specified Sweep angle. If the color fill parameter is true, the Fill_mode parameter is activated. If Fill_mode is false, the arc will be filled between it's end points. If Fill_mode is true, the arc will be filled around the center of the arc. A Fill_mode of true will produce a wedge or pie shaped object. Returns the Display List object number for this arc. This object will not be visible until the "gr.render" command is called. The gr.modify parameters for gr.arc are: "left", "top", "right", "bottom", "start_angle", "end_angle" and "fill_mode". The value for "fill_mode" is either false (0) or true (not 0);
Gr.Circle Object_number, X, y, radius
Creates and inserts a circle object into the Display List. The circle will be created with the given radius around the designated center (x,y) coordinates. The circle will or will not be filled depending upon the gr.color fill parameter. Returns the Display List object number for this circle. This object will not be visible until the "gr.render" command is called. The "gr.modify" parameters for gr.circle are "x", "y", and "radius"
Hide and Show Commands
gr.hide Object_number
Hides the object with the specified Object_number. This change will not be visible until the "gr.render" command is called.
gr.show Object_number
Shows(unhiddes) the object with the specified Object_number. This change will not be visible until the "gr.render" command is called.
Touch Query Commands
gr.touch touched, x, y
Tests for a touch on the graphics screen. If the screen was touched, touched will be returned as true( Not 0) with the (x,y) coordinates of the touch. If Touched is false (0), then the screen has not been touched and the (x,y) coordinates are invalid.
gr.bounded.touch touched, left, top, right, bottom
The touched parameter will be returned true (not zero) if the user has touched the screen within the rectangle defined by the left, top, right, bottom parameters. If the screen has not been touched or has been touched outside of the bounding rectangle, the touched parameter will be return as false (zero).
Text Preparatory Commands
gr.text.align type
Align the text relative to the (x,y) coordinates given in the "gr.text.draw" command. type values: 1 = Left, 2 = Center, 3 = Right.
gr.text.size n
Specifies the size of the text in pixels
gr.text.bold Boolean
Makes the text bold if Boolean < >0 . If the color fill parameter is 0, only the outline of the bold test will be shown. If fill <>0, the text outline will be filled.
gr.text.underline Boolean
The drawn text will be underlined if Boolean <> 0.
gr.text.strike Boolean
The text will be drawn with the a strike through line if Boolean <>0.
gr.text.skew n
Skews the text for an italic effect. Negative values skew the bottom of the text left. This makes the text lean forward. Positive values do the opposite. Traditional italics can be best imitated with n = -0.25.
Text Draw Command
gr.text.draw Object_number, x, y, text$
Creates and inserts a text object into the Display List. The text object will use the latest color and text preparatory commands. Returns the Display List object number for this text. This object will not be visible until the "gr.render" command is called. The "gr.modify" parameters for gr.text.draw are "x", "y", "text". The value for the "text" parameter is a string representing the new text.
