BAR CommandSummaryDraws a bar (a filled rectangle) on the screen using the current graphics pen color. Syntax
BAR x1 coordinate, y1 coordinate, x2 coordinate, y2 coordinate Remarks and ExamplesThe BAR command will draw a filled rectangle on the screen from the (x1, y1) coordinate to the (x2, y2) coordinate. The rectangle will be drawn using the current graphics pen color. The graphics pen color can be changed using the PENCOLOR command. Examples: REM Draw a red rectangle from (100, 150) to (400, 200) PENCOLOR 255, 0, 0 BAR 100, 150, 400, 200 See also: BOX, PENCOLOR, Overview of Graphics Programming in ReadyBASIC Copyright 2006-2012, Kevin Matz, All Rights Reserved. |
|