Computer Science, asked by sanjibdas7343, 6 months ago

what is the use of line statement in qbasic? write the syntax for the line statement.

Answers

Answered by rohit6742
4

Answer:

STEP Specifies that coordinates are relative to the current graphics cursor position.

(x1!,y1!),

(x2!,y2!) The screen coordinates of the start of the line and of the end of the line.

color% A color attribute that sets the color of the line or rectangle. The available color attributes depend on your graphics adapter and the screen mode set by the most recent SCREEN statement.

B Draws a rectangle instead of a line.

BF Draws a filled box.

style% A 16-bit value whose bits set whether or not pixels are drawn. Use to draw dashed or dotted lines

Explanation:

example: 'This example requires a color graphics adapter.

SCREEN 1

LINE (110, 70)-(190, 120), , B

LINE (0, 0)-(320, 200), 3, , &HFF00

Answered by Anonymous
2

Answer:

The screen coordinates of the start of the line and of the end of the line. color% A color attribute that sets the color of the line or rectangle. The available color attributes depend on your graphics adapter and the screen mode set by the most recent SCREEN statement. B Draws a rectangle instead of a line.

Similar questions