en:arc [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:arc

## Arc (Statement)

### Format

arc x_expr, y_expr, width_expr, height_expr, startangle_expr, widthangle_expr
arc ( x_expr, y_expr, width_expr, height_expr, startangle_expr, widthangle_expr )

### Description

Draws an arc (part of a circle or ellipse) inside the bounding rectangle defined by x_expr, y_expr, width_expr, and height_expr on the screen or the printer. The center of the circle/ellipse will be in the center of the rectangle. The angles are defined from the 12 o'clock position in a clockwise direction in radians.

Arc may also be used to draw an un-filled circle or an ellipse by defining the angular width to go all the way around (2*pi).

### Example

    # arc_example.kbs
    # 2012-12-29 j.m.reneau
    #
    # example of arc statement added on 0.9.9.25
    clg
    color black
    for t = 1 to 100 step 3
       arc 150-t,150-t,t*2,t*2,0,pi*2*t/100
    next t

draws

### See Also

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

### History

0.9.9.25 | New To Version

en/arc.txt · Last modified: 2014/02/08 19:11 by admin