libmonochrome/man/man3/ml_color.3

32 lines
677 B
Groff

.TH ML_Color 3
.SH NAME
ML_Color - Colors from libmonochrome
.SH SYNOPSIS
.B #include <monochrome.h>
.in n
.nf
typedef enum {
ML_TRANSPARENT = -1,
ML_WHITE,
ML_BLACK,
ML_XOR,
ML_CHECKER
} ML_Color;
.fi
.SH DESCRIPTION
ML_Color is an enumeration of the different colors used by libmonochrome.
ML_XOR reverses the color of drawn-on pixels in the VRAM.
ML_CHECKER is a "checker" color. It renders a pixel white or black according to the following rule : if (x and y are even) or (x and y are odd), then the pixel becomes black, otherwise it becomes white.
.SH SEE ALSO
.BR libmonochrome(3),
.BR ML_VRAM(3)
.SH AUTHOR
Copyright (C) 2016 by Thomas "CakeIsALie5" Touhey.