en:rect [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:rect

## Rect (Statement)

### Format

rect x_expr,y_expr,width_expr,height_expr
rect ( x_expr, y_expr, width_expr, height_expr )

### Description

Draws a width_expr x height_expr pixel rectangle using the current pen and brush colors. The top left corner is located at x_expr,y_expr.

### Example

    clg
    color red
    rect 50,50,150,150
    penwidth 10
    color blue, yellow
    rect 100,100,150,150
    color green, clear
    rect 10,130,280,40

draws

### See Also

Arc, Chord, Circle, GetPenWidth, Line, PenWidth, Pie, Plot, Poly, Rect, Stamp

### History

en/rect.txt · Last modified: 2014/02/08 22:38 by admin