2017-08-07 06:15:20 +00:00
|
|
|
#include "color.h"
|
|
|
|
|
|
|
|
|
|
#include <iomanip>
|
|
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& os, const Color& color) {
|
|
|
|
|
return os
|
|
|
|
|
<< std::hex << std::setfill('0')
|
|
|
|
|
<< "rgb("
|
2017-08-10 13:51:39 -07:00
|
|
|
<< "0x" << std::setw(4) << color.at(0) << ", "
|
|
|
|
|
<< "0x" << std::setw(4) << color.at(1) << ", "
|
|
|
|
|
<< "0x" << std::setw(4) << color.at(2)
|
2017-08-07 06:15:20 +00:00
|
|
|
<< ")" << std::dec;
|
|
|
|
|
}
|