#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" << 60 << "\n"; for (int row {60}; row < nrows; ++row) { for (int col {255}; col < ncols; ++col) { cout << "60 255 0\n"; //blue } } return EXIT_SUCCESS; }