Computer Science, asked by barghya21, 2 months ago

Write a QBASIC program to draw a light yellow vertical line

Answers

Answered by abhradeepdutta779
1

A graphic is an image or visual representation of an object.

§ Graphics on the screen can be drawn with the help of predefined commands called as Graphic Statements in QBASIC.

§ Before learning the various Graphic Statements, let us understand the meaning of a Pixel and Screen Resolution.

§ A Pixel (px) is the smallest portion of an image or picture on the computer screen.

§ The maximum number of pixels that can be displayed vertically or horizontally on a computer screen is termed as Screen Resolution.

§ For Example: A Screen Resolution 640 * 480 for an image would mean 640 pixels in horizontal direction and 480 pixels in a vertical direction.

Graphic Statement in QBASIC:

The Graphic Statements are used in QBASIC program to draw graphics on the screen. These Statements are as follows:

§ SCREEN Statement

§ COLOR Statement

§ PSET Statement

§ LINE Statement

§ DRAW Statement

§ CIRCLE Statement

§ PAINT Statement

Similar questions