Sfairadora

  • Reference Guide

draw_chord

var_bmp <- draw_chord(x, y, rx, ry, angle1, angle2, fill)
var_bmp <- draw_chord(x, y, rx, ry, angle1, angle2, fill, outline)
The var_bmp parameter is an l-value referring to a variable of the type Bitmap. The function draws an elliptic chord to the bitmap. A chord is an arc the end points of which are connected with a line.

Parameters

var_bmp
An l-value of the type Bitmap to which the function draws.
x, y
The coordinates of the center of the ellipse the part which the arc is.
rx, ry
The lengths of the horizontal and vertical half-axis.
angle1
The angle at that the arc starts. The value is specified in radians (a value can be converted from degrees to radians with the deg operator, e.g. 90 deg). The angle 0 is the top of the ellipse; the angle runs clockwise.
angle2
The angle at that the arc stops.
fill
The fill of the chord.
outline
The line style of the chord.

Return Value

The return value is an l-value referring to the modified bitmap.