Geom Software - C++ Programming and Geometry Libraries
Fade2D Documentation pages v1.58
GEOM_FADE2D::Color Class Reference

Color. More...

#include <Color.h>

Public Member Functions

 Color (double r_, double g_, double b_, double width_, bool bFill_=false)
 
 Color (Colorname c, float width_=0.001, bool bFill_=false)
 
bool operator< (const Color &other) const
 
bool operator!= (const Color &other) const
 
bool operator== (const Color &other) const
 

Static Public Member Functions

static Colorname getNextColorName ()
 

Public Attributes

float r
 Red.
 
float g
 Green.
 
float b
 Blue.
 
float width
 Linewidth.
 
bool bFill
 Fill the shape or not.
 

Static Public Attributes

static size_t currentColorName
 

Friends

std::ostream & operator<< (std::ostream &stream, const Color &c)
 

Detailed Description

See also
Visualizer2

Constructor & Destructor Documentation

◆ Color() [1/2]

GEOM_FADE2D::Color::Color ( double  r_,
double  g_,
double  b_,
double  width_,
bool  bFill_ = false 
)
Parameters
r_red
g_green
b_blue
width_linewidth
bFill_fill (default: false)
Note
bFill_=true has two meanings: Objects that can be filled (Triangle2, Circle2) are filled with the rgb-color but line segments get x-marks at their endpoints.

◆ Color() [2/2]

GEOM_FADE2D::Color::Color ( Colorname  c,
float  width_ = 0.001,
bool  bFill_ = false 
)

For convenience predefined colors can be used.

Parameters
cis a predefined color name
width_linewidth (default: 0.001)
bFill_fill (default: false)
Note
bFill_=true has two meanings: Objects that can be filled (Triangle2, Circle2) are filled with the rgb-color but line segments get x-marks at their endpoints.

The documentation for this class was generated from the following file: