write a programe on vertical line. qb64
Answers
Answer:
The STEP keyword make column and row coordinates relative to the previously coordinates set by any graphic statement.
The optional parameters (column1, row1) set the line's starting point.
The dash and second coordinate parameters (column2, row2) must be designated to complete the line or box.
The INTEGER color attribute or LONG _RGB32 32 bit color value sets the drawing color. If omitted, the current destination page's _DEFAULTCOLOR is used.
Optional B keyword creates a rectangle (box) using the start and end coordinates as diagonal corners. BF creates a box filled.
The style% signed INTEGER value sets a dotted pattern to draw the line or rectangle outline.
Description
Creates a colored line between the given coordinates. Can be drawn partially off screen.
B creates a box outline with each side parallel to the program screen sides. BF creates a filled box.
style% can be used to create a dotted pattern to draw the line.
B can be used with a style% to draw the rectangle outline using the desired pattern.
BF ignores the style% parameter. See examples 2, 3 and 4 below.
The graphic cursor is set to the center of the program window on program start. Using the STEP keyword makes the coordinates relative to the current graphic cursor.
LINE can be used in any graphic screen mode, but cannot be used in the default screen mode 0 as it is text only.
Examples
Example 1: Following one line with another by omitting the second line's first coordinate parameter bracket entirely:
SCREEN 12
LINE (100, 100)-(200, 200), 10 'creates a line
LINE -(400, 200), 12 'creates a second line from end of first
END
Explanation: The full equivalent LINE statement would be: LINE(200, 200)-(400, 200), 12
Example 2: Creating styled lines and boxes with the LINE statement. Different style values create different dashed line spacing.
SCREEN 12