Big templatization. Fix for interpolation.

This commit is contained in:
Ian Gulliver
2017-08-10 15:24:23 -07:00
parent c9024d3d63
commit a2c9eeb66b
11 changed files with 247 additions and 234 deletions

View File

@@ -1,13 +0,0 @@
#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.at(0) << ", "
<< "0x" << std::setw(4) << color.at(1) << ", "
<< "0x" << std::setw(4) << color.at(2)
<< ")" << std::dec;
}