Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Color Namespace Reference


Functions

COLOR color_ub (unsigned char r, unsigned char g, unsigned char b)
 create a COLOR from unsigned bytes r, g, b
COLOR rgba_to_color (uint rgba)
 create a COLOR from an rgba unsigned int
double rgba_to_alpha (uint rgba)
 return alpha (in [0,1]) from an rgba unsigned int
uint color_to_rgba (CCOLOR &col, double alpha=1)
 create an rgba unsigned int from a COLOR and alpha
CCOLOR black (0.0, 0.0, 0.0)
CCOLOR white (1.0, 1.0, 1.0)
CCOLOR grey1 (0.1, 0.1, 0.1)
CCOLOR grey2 (0.2, 0.2, 0.2)
CCOLOR grey3 (0.3, 0.3, 0.3)
CCOLOR grey4 (0.4, 0.4, 0.4)
CCOLOR grey5 (0.5, 0.5, 0.5)
CCOLOR grey6 (0.6, 0.6, 0.6)
CCOLOR grey7 (0.7, 0.7, 0.7)
CCOLOR grey8 (0.8, 0.8, 0.8)
CCOLOR grey9 (0.9, 0.9, 0.9)
COLOR grey (double g)
CCOLOR red (1.0, 0.0, 0.0)
CCOLOR green (0.0, 1.0, 0.0)
CCOLOR blue (0.0, 0.0, 1.0)
CCOLOR yellow (1.0, 1.0, 0.0)
CCOLOR magenta (1.0, 0.0, 1.0)
CCOLOR cyan (0.0, 1.0, 1.0)
CCOLOR pink (1.0, 0.5, 0.5)
CCOLOR orange (1.0, 0.5, 0.0)
CCOLOR brown (0.5,.37,.25)
CCOLOR tan (0.9, 0.8, 0.7)
CCOLOR firebrick (0.698, 0.133, 0.133)
str_ptr color_to_str (CCOLOR &col)
CCOLOR get_var_color (Cstr_ptr &var_name, CCOLOR &default_val)

Variables

CCOLOR blue_pencil_l = color_ub(166,201,243)
CCOLOR blue_pencil_m = color_ub(104,158,222)
CCOLOR blue_pencil_d = color_ub( 79,135,211)
CCOLOR red_pencil = color_ub(215, 50, 20)
CCOLOR orange_pencil_l = color_ub(255, 204, 51)
CCOLOR orange_pencil_m = color_ub(255, 153, 11)
CCOLOR orange_pencil_d = color_ub(243, 102, 0)
CCOLOR blue1 = color_ub( 63, 64, 69)
CCOLOR blue2 = color_ub( 6, 90, 126)
CCOLOR blue3 = color_ub(100, 117, 135)
CCOLOR blue4 = color_ub(133, 156, 162)
CCOLOR green2 = color_ub(223, 217, 185)
CCOLOR green1 = color_ub(193, 186, 118)
CCOLOR orange1 = color_ub(234, 137, 33)
CCOLOR orange2 = color_ub(254, 171, 69)
CCOLOR orange3 = color_ub(255, 216, 178)
CCOLOR red1 = color_ub(115, 0, 24)
CCOLOR red2 = color_ub(149, 47, 7)
CCOLOR red3 = color_ub(204, 136, 99)
CCOLOR brown5 = color_ub(180, 150, 98)
CCOLOR brown4 = color_ub(207, 164, 101)
CCOLOR brown3 = color_ub(170, 120, 63)
CCOLOR brown2 = color_ub(137, 91, 46)
CCOLOR brown1 = color_ub( 93, 50, 23)
CCOLOR gray1 = color_ub(140, 141, 146)
CCOLOR gray2 = color_ub(183, 172, 166)
CCOLOR gray3 = color_ub(236, 225, 219)
CCOLOR s_green = color_ub(177 , 217, 60)


Function Documentation

CCOLOR Color::black 0.  0,
0.  0,
0.  0
 

Referenced by TEXT2D::draw(), GtexUtil::draw_strip(), KeyLineTexture::set_color(), and GL_VIEW::setup_light().

CCOLOR Color::blue 0.  0,
0.  0,
1.  0
 

Referenced by debug_check_verts(), and XF_DRAW::draw().

CCOLOR Color::brown 0.  5,
37,
25
 

uint Color::color_to_rgba CCOLOR col,
double  alpha = 1
[inline]
 

create an rgba unsigned int from a COLOR and alpha

Definition at line 40 of file colors.H.

References build_rgba().

Referenced by RefImage::set().

str_ptr Color::color_to_str CCOLOR col  )  [inline]
 

Definition at line 119 of file colors.H.

Referenced by get_var_color().

COLOR Color::color_ub unsigned char  r,
unsigned char  g,
unsigned char  b
[inline]
 

create a COLOR from unsigned bytes r, g, b

Definition at line 23 of file colors.H.

CCOLOR Color::cyan 0.  0,
1.  0,
1.  0
 

CCOLOR Color::firebrick 0.  698,
0.  133,
0.  133
 

CCOLOR Color::get_var_color Cstr_ptr &  var_name,
CCOLOR default_val
[inline]
 

Definition at line 126 of file colors.H.

References color_to_str(), and Config::get_var_str().

Referenced by BaseJOTapp::init_view().

CCOLOR Color::green 0.  0,
1.  0,
0.  0
 

COLOR Color::grey double  g  )  [inline]
 

Definition at line 62 of file colors.H.

Referenced by GestureBoxDrawer::draw(), and GestureDrawer::draw().

CCOLOR Color::grey1 0.  1,
0.  1,
0.  1
 

CCOLOR Color::grey2 0.  2,
0.  2,
0.  2
 

CCOLOR Color::grey3 0.  3,
0.  3,
0.  3
 

CCOLOR Color::grey4 0.  4,
0.  4,
0.  4
 

CCOLOR Color::grey5 0.  5,
0.  5,
0.  5
 

CCOLOR Color::grey6 0.  6,
0.  6,
0.  6
 

CCOLOR Color::grey7 0.  7,
0.  7,
0.  7
 

CCOLOR Color::grey8 0.  8,
0.  8,
0.  8
 

CCOLOR Color::grey9 0.  9,
0.  9,
0.  9
 

CCOLOR Color::magenta 1.  0,
0.  0,
1.  0
 

CCOLOR Color::orange 1.  0,
0.  5,
0.  0
 

Referenced by DEBUG_ELLIPSE::draw().

CCOLOR Color::pink 1.  0,
0.  5,
0.  5
 

CCOLOR Color::red 1.  0,
0.  0,
0.  0
 

Referenced by debug_check_verts(), XF_DRAW::draw(), and UVdata::split().

double Color::rgba_to_alpha uint  rgba  )  [inline]
 

return alpha (in [0,1]) from an rgba unsigned int

Definition at line 35 of file colors.H.

References rgba_to_a().

COLOR Color::rgba_to_color uint  rgba  )  [inline]
 

create a COLOR from an rgba unsigned int

Definition at line 28 of file colors.H.

References rgba_to_b(), rgba_to_g(), and rgba_to_r().

Referenced by RefImage::color().

CCOLOR Color::tan 0.  9,
0.  8,
0.  7
 

Referenced by ControlFrameTexture::draw_selected_verts(), mlib::Mat4< M, P, V, L, Q >::glu_perspective(), and BaseJOTapp::init_view().

CCOLOR Color::white 1.  0,
1.  0,
1.  0
 

Referenced by ControlLineTexture::ControlLineTexture(), TEXT2D::draw(), and KeyLineTexture::set_color().

CCOLOR Color::yellow 1.  0,
1.  0,
0.  0
 

Referenced by XF_DRAW::draw(), and FlatShadeTexture::draw().


Variable Documentation

CCOLOR Color::blue1 = color_ub( 63, 64, 69)
 

Definition at line 91 of file colors.H.

Referenced by color_verts().

CCOLOR Color::blue2 = color_ub( 6, 90, 126)
 

Definition at line 92 of file colors.H.

Referenced by color_verts().

CCOLOR Color::blue3 = color_ub(100, 117, 135)
 

Definition at line 93 of file colors.H.

CCOLOR Color::blue4 = color_ub(133, 156, 162)
 

Definition at line 94 of file colors.H.

Referenced by color_verts().

CCOLOR Color::blue_pencil_d = color_ub( 79,135,211)
 

Definition at line 83 of file colors.H.

Referenced by ControlLineTexture::ControlLineTexture().

CCOLOR Color::blue_pencil_l = color_ub(166,201,243)
 

Definition at line 81 of file colors.H.

CCOLOR Color::blue_pencil_m = color_ub(104,158,222)
 

Definition at line 82 of file colors.H.

CCOLOR Color::brown1 = color_ub( 93, 50, 23)
 

Definition at line 108 of file colors.H.

CCOLOR Color::brown2 = color_ub(137, 91, 46)
 

Definition at line 107 of file colors.H.

CCOLOR Color::brown3 = color_ub(170, 120, 63)
 

Definition at line 106 of file colors.H.

CCOLOR Color::brown4 = color_ub(207, 164, 101)
 

Definition at line 105 of file colors.H.

CCOLOR Color::brown5 = color_ub(180, 150, 98)
 

Definition at line 104 of file colors.H.

CCOLOR Color::gray1 = color_ub(140, 141, 146)
 

Definition at line 110 of file colors.H.

CCOLOR Color::gray2 = color_ub(183, 172, 166)
 

Definition at line 111 of file colors.H.

CCOLOR Color::gray3 = color_ub(236, 225, 219)
 

Definition at line 112 of file colors.H.

CCOLOR Color::green1 = color_ub(193, 186, 118)
 

Definition at line 96 of file colors.H.

CCOLOR Color::green2 = color_ub(223, 217, 185)
 

Definition at line 95 of file colors.H.

CCOLOR Color::orange1 = color_ub(234, 137, 33)
 

Definition at line 97 of file colors.H.

Referenced by color_verts().

CCOLOR Color::orange2 = color_ub(254, 171, 69)
 

Definition at line 98 of file colors.H.

CCOLOR Color::orange3 = color_ub(255, 216, 178)
 

Definition at line 99 of file colors.H.

CCOLOR Color::orange_pencil_d = color_ub(243, 102, 0)
 

Definition at line 89 of file colors.H.

CCOLOR Color::orange_pencil_l = color_ub(255, 204, 51)
 

Definition at line 87 of file colors.H.

Referenced by ControlFrameTexture::draw_selected_faces().

CCOLOR Color::orange_pencil_m = color_ub(255, 153, 11)
 

Definition at line 88 of file colors.H.

CCOLOR Color::red1 = color_ub(115, 0, 24)
 

Definition at line 100 of file colors.H.

CCOLOR Color::red2 = color_ub(149, 47, 7)
 

Definition at line 101 of file colors.H.

CCOLOR Color::red3 = color_ub(204, 136, 99)
 

Definition at line 102 of file colors.H.

CCOLOR Color::red_pencil = color_ub(215, 50, 20)
 

Definition at line 85 of file colors.H.

Referenced by ControlFrameTexture::draw_selected_edges().

CCOLOR Color::s_green = color_ub(177 , 217, 60)
 

Definition at line 114 of file colors.H.


Generated on Mon Sep 18 11:48:09 2006 for jot by  doxygen 1.4.4