Sector

Informations

Author: Maxime Delorme
License: Freeware

Description

This script allows to draw the sector of a circle. It can be used for instance to render pie charts.
It requires FPDF 1.51.

function Sector(float xc, float yc, float r, float a, float b [, string style [, boolean cw [, float o]]])

xc: abscissa of the center.
yc: ordinate of the center.
r: radius.
a: start angle (in degrees).
b: end angle (in degrees).
style: D, F, FD or DF (draw, fill, fill and draw). Default: FD.
cw: indicates whether to go clockwise (default: true).
o: origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock). Default: 90.