Graphics Functions and Statements Setting screen- display characteristics --------------------------------------- SCREEN Statement Specifies a BASIC screen mode, which determines screen characteristics such as graphics capability, resolution, and color-number range. SCREEN Function Returns a character's ASCII value or its color from a specified screen location. Plotting or erasing a single point ---------------------------------- PSET Draws a pixel on the screen in the specified color, using the screen's foreground color as default. PRESET Draws a pixel on the screen in the specified color, using the screen's background color as default. Drawing shapes -------------- LINE Draws a straight line or a box. CIRCLE Draws a circle, ellipse, arc, or pie. DRAW Draws an object. Combines many of the features of other BASIC graphics statements into a graphics macro language. Defining screen coordinates --------------------------- VIEW Specifies a rectangle on the screen (or viewport) as the area for graphics output. WINDOW Defines the dimensions of the current viewport. PMAP Maps view coordinates to window coordinates, or vice versa. POINT(number) Returns the screen coordinates of the graphics cursor, or the color of a specified pixel. Using color ----------- COLOR Sets the default colors used in graphics output. PALETTE Assigns different attributes to color numbers. Works only on systems equipped with an EGA or VGA. POINT(x, y) Returns the color number of a pixel whose screen coordinates are x and y. Painting enclosed shapes ------------------------ PAINT Fills an area on the screen with a color or pattern. Animating --------- GET Copies a rectangular area on the screen by translating the image to numeric data and storing the data in a numeric array. PUT Displays an image on the screen that was previously copied with GET. PCOPY Copies one screen page to another.