#include #include using namespace std; //Run it like this: ./a.out | /usr/bin/pnmtopng > solid.png // ls -l // file solid.png // cp solid.png public_html int main() { int nrows {20}; //number of rows of pixels int ncols {30}; //number of columns of pixels cout << "P3\n" << ncols << " " << nrows << "\n" << 255 << "\n"; for (int row {0}; row < nrows; ++row) { for (int col {0}; col < ncols; ++col) { cout << "0 0 255\n"; //blue } } return EXIT_SUCCESS; }