libmonochrome/doc/ML_color.3.txt

39 lines
765 B
Plaintext

ML_COLOR(3)
===========
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: libmonochrome
:man manual: libmonochrome manual
NAME
----
ML_color - Colors from libmonochrome
SYNOPSIS
--------
[source,c]
----
#include <monochrome.h>
typedef enum {
ML_TRANSPARENT = -1,
ML_WHITE,
ML_BLACK,
ML_XOR,
ML_CHECKER
} ML_Color;
----
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.
SEE ALSO
--------
*libmonochrome*(3),
*ML_display_vram*(3)