"Fossies" - the Fresh Open Source Software Archive

Member "doc_html/Stream_support/classCGAL_1_1Color.html" (8 Nov 2019, 17863 Bytes) of package /linux/misc/CGAL-4.14.2-doc_html.tar.xz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the CGAL-4.14.2-doc_html.tar.xz project site itself.

\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.14.2 - IO Streams
CGAL::Color Class Reference

#include <CGAL/IO/Color.h>


An object of the class Color is a color available for drawing operations in many CGAL output streams.

Each color is defined by a triple of unsigned chars (r,g,b) with 0 \(\le\) r,g,b \( \le \) 255, the so-called rgb-value of the color.

See also


 Color ()
 creates a color with rgb-value (0,0,0), i.e. black.
 Color (unsigned char red, unsigned char green, unsigned char blue)
 creates a color with rgb-value (red,green,blue).


bool operator== (const Color &q) const
 Test for equality: Two colors are equal, iff their rgb-values are equal.
bool operator!= (const Color &q) const
 Test for inequality.
unsigned char red () const
 returns the red component of c.
unsigned char green () const
 returns the green component of c.
unsigned char blue () const
 returns the blue component of c.


The following constants are predefined:

const Color BLACK = Color(0, 0, 0)
const Color WHITE = Color(255, 255, 255)
const Color RED = Color(255, 0, 0)
const Color GREEN = Color(0, 255, 0)
const Color BLUE = Color(0, 0, 255)
const Color VIOLET = Color(255, 0, 255)
const Color ORANGE = Color(255, 170, 0)