Sfairadora

  • Reference Guide

draw_pie

var_bmp <- draw_pie(x, y, rx, ry, angle1, angle2, fill)
var_bmp <- draw_pie(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 section to the bitmap. A section is an arc the end points of which are connected by two lines to the center of the ellipse.

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 of which the arc is.
rx, ry
The lengths of the horizontal and vertical half-axis. (If the both values are the same, a circle with that radius is drawn).
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 section.
outline
The line style of the section.

Return Value

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