Working identity LUT

This commit is contained in:
Ian Gulliver
2017-08-07 06:15:20 +00:00
parent 89a54867f3
commit 100c44fe4e
7 changed files with 81 additions and 14 deletions

13
color.cc Normal file
View File

@@ -0,0 +1,13 @@
#include "color.h"
#include <iomanip>
std::ostream& operator<<(std::ostream& os, const Color& color) {
return os
<< std::hex << std::setfill('0')
<< "rgb("
<< "0x" << std::setw(4) << color.r << ", "
<< "0x" << std::setw(4) << color.g << ", "
<< "0x" << std::setw(4) << color.b
<< ")" << std::dec;
}