Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
colors.ccGo to the documentation of this file.00001 #include "Vision/colors.h" 00002 00003 //! displays an rgb value in the form '[r,g,b]' 00004 std::ostream& operator<<(std::ostream &os, const rgb &rgbval) { 00005 os << "[" << (unsigned int)rgbval.red 00006 << "," << (unsigned int)rgbval.green 00007 << "," << (unsigned int)rgbval.blue 00008 << "]"; 00009 return os; 00010 } 00011 00012 //! returns @a rgbval in the form 'r g b' 00013 std::string toString(const rgb &rgbval) { 00014 char buff[15]; 00015 snprintf(buff,15,"%d %d %d",rgbval.red,rgbval.green,rgbval.blue); 00016 return buff; 00017 } 00018 00019 |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:54:51 2007 by Doxygen 1.5.4 |