.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PLOT_ADDLINESEGMENT" "3" "26 May 2003" "" ""
.SH NAME
plot_addlinesegment \- add a straight line segment to the polygon
.SH SYNOPSIS
.nf
#include<libmplot.h>
void plot_addlinesegment (plot_state *state, unsigned int x, unsigned int y);
.fi
.SH "DESCRIPTION"
.PP
This function adds a straight line segment to the polygon currently being drawn. The line travels from the current pen location (the end of the previous drawing command, or plot_setlinestart function call), to the point specified.
.SH "RETURNS"
.PP
Nothing
.SH "EXAMPLE"
.nf
#include<libmplot.h>
plot_state *graph;
if((graph = plot_newplot(400, 300)) == NULL){
... error ...
}
plot_setlinestart(graph, 10, 10);
plot_addlinesegment(graph, 20, 20);
.fi
.SH "VERSION"
.PP
This documentation was generated for \fBlibplot\fR 0.3 by \fBautodocbook\fR (http://www.stillhq.com).
.SH "AUTHOR"
.PP
\fBlibplot\fR is under development by Michael Still (mikal@stillhq.com). All code is Copyright Michael Still 2002, and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.
.SH "BUGS"
.PP
There are no known bugs in \fBlibplot\fR. If you find one, please contact mikal@stillhq.com and let me know.