libmonochrome/man/man3/ML_color.3

61 lines
1.9 KiB
Groff

'\" t
.\" Title: ml_color
.\" Author: Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\" Date: 07/18/2016
.\" Manual: libmonochrome
.\" Source: libmonochrome
.\" Language: English
.\"
.TH "ML_COLOR" "3" "07/18/2016" "libmonochrome" "libmonochrome"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ML_color \- Colors from libmonochrome
.SH "SYNOPSIS"
.sp
.nf
#include <monochrome\&.h>
typedef enum {
ML_TRANSPARENT = \-1,
ML_WHITE,
ML_BLACK,
ML_XOR,
ML_CHECKER
} ML_Color;
.fi
.SH "DESCRIPTION"
.sp
ML_Color is an enumeration of the different colors used by libmonochrome\&.
.sp
ML_XOR reverses the color of drawn\-on pixels in the VRAM\&.
.sp
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"
.sp
libmonochrome(3), ML_VRAM(3)
.SH "AUTHOR"
.PP
\fBThomas "Cakeisalie5" Touhey\fR <\&thomas@touhey\&.fr\&>
.RS 4
Author.
.RE