.TH vga_drawline() "" "" "VGA Function"
.PC "Draw a line in the current color"
.B "#include <vga.h>"
\fBint vga_drawline(\fIx1\^\fB, \fIy1\^\fB, \fIx2\fB, \fIy2\^\fB)\fR
\fBint \fIx1\^\fB, \fIy1\^\fB, \fIx2\^\fB, \fIy2\^\fB;\fR
.PP
Function
.B vga_drawline()
draws a line in graphics mode.
It draws the line from the pixel with coordinates
.I x1
and
.I y1
to the pixel with coordinates
.I x2
and
.IR y2 .
It draws the line in the current color, which can be set by the function
.BR vga_setcolor() .
.SH "See Also"
.B
libvga,
vga.h,
vga_drawpixel(),
vga_drawscanline()
.R
