libmonochrome/man/man3/ml_line.3

26 lines
647 B
Groff

.TH ML_line 3
.SH NAME
ML_line - Line drawing functions from libmonochrome
.SH SYNOPSIS
.B #include <monochrome.h>
.B void ML_line(int x1, int y1, int x2, int y2, ML_Color color);
.B void ML_horizontal_line(int y, int x1, int x2, ML_Color color);
.B void ML_vertical_line(int x, int y1, int y2, ML_Color color);
.SH DESCRIPTION
These functions draw lines on the VRAM.
For horizontal line drawing, the ML_horizontal_line function is faster than ML_line, which has a general algorithm (the Bresenham algorithm).
.SH SEE ALSO
.BR libmonochrome(3),
.BR ML_VRAM(3),
.BR ML_Color(3)
.SH AUTHOR
Copyright (C) 2016 by Thomas "CakeIsALie5" Touhey.