#include "Pixel.h" #include <cassert> #include <iostream> Pixel::Pixel() { r = 0; g = 0; b = 0; } Pixel::Pixel(const unsigned int & x,const unsigned int & y, const unsigned int &z) { assert(x>=0 && x<=255); assert(y>=0 && y<=255); assert(z>=0 && z<=255); r = char(x); g = char(y); b = char(z); }