29 #include <osg/io_utils>
36 typedef osg::Vec4 WColor;
49 WColor convertHSVtoRGBA(
double h,
double s,
double v );
58 WColor inverseColor(
const WColor& other );
66 static const WColor DARKRED( 0.5, 0.0, 0.0, 1.0 );
67 static const WColor RED( 1.0, 0.0, 0.0, 1.0 );
68 static const WColor LIGHTRED( 1.0, 0.5, 0.5, 1.0 );
70 static const WColor DARKGREEN( 0.0, 0.5, 0.0, 1.0 );
71 static const WColor GREEN( 0.0, 1.0, 0.0, 1.0 );
72 static const WColor LIGHTGREEN( 0.5, 1.0, 0.5, 1.0 );
74 static const WColor DARKBLUE( 0.0, 0.0, 0.5, 1.0 );
75 static const WColor BLUE( 0.0, 0.0, 1.0, 1.0 );
76 static const WColor LIGHTBLUE( 0.5, 0.5, 1.0, 1.0 );
78 static const WColor DARKYELLOW( 0.5, 0.5, 0.0, 1.0 );
79 static const WColor YELLOW( 1.0, 1.0, 0.0, 1.0 );
80 static const WColor LIGHTYELLOW( 1.0, 1.0, 0.5, 1.0 );
82 static const WColor ORANGE( 1.0, 0.5, 0.0, 1.0 );
84 static const WColor VIOLET( 0.5, 0.0, 0.5, 1.0 );
85 static const WColor PINK( 1.0, 0.0, 1.0, 1.0 );
87 static const WColor TEAL( 0.0, 0.5, 0.5, 1.0 );
88 static const WColor CYAN( 0.0, 1.0, 1.0, 1.0 );
90 static const WColor BLACK( 0.0, 0.0, 0.0, 1.0 );
91 static const WColor GRAY25( 0.25, 0.25, 0.25, 1.0 );
92 static const WColor GRAY50( 0.5, 0.5, 0.5, 1.0 );
93 static const WColor GRAY75( 0.75, 0.75, 0.75, 1.0 );
94 static const WColor WHITE( 1.0, 1.0, 1.0, 1.0 );
static const size_t DefaultPaletteSize
The size of the default palette.
const WColor DefaultPalette[22]
the default palette colors