File indexing completed on 2026-04-09 07:49:31
0001 #include "SColor.hh"
0002
0003 const SColor SColors::red = { 0xff, 0x00, 0x00 };
0004 const SColor SColors::green = { 0x00, 0xff, 0x00 };
0005 const SColor SColors::blue = { 0x00, 0x00, 0xff };
0006 const SColor SColors::cyan = { 0x00, 0xff, 0xff };
0007 const SColor SColors::magenta = { 0xff, 0x00, 0xff };
0008 const SColor SColors::yellow = { 0x00, 0xff, 0xff };
0009 const SColor SColors::white = { 0xff, 0xff, 0xff };
0010 const SColor SColors::black = { 0x00, 0x00, 0x00 };
0011
0012 unsigned char SColor::get(unsigned i) const
0013 {
0014 unsigned char c = 0xff ;
0015 switch(i)
0016 {
0017 case 0: c = r ; break ;
0018 case 1: c = g ; break ;
0019 case 2: c = b ; break ;
0020 }
0021 return c ;
0022 }
0023
0024