#include #include using namespace std; int main() { int nrows {20}; // number of rows of pixels int ncols {30}; // number of columns of pixels // Set your custom color here (replace 255 215 0 with your values) int red = 255; int green = 215; int blue = 0; // Output PPM header (P3 for plain text, dimensions, and max color value 255) cout << "P3\n" << ncols << " " << nrows << "\n" << 255 << "\n"; // Loop over each row for (int row {0}; row < nrows; ++row) { // Loop over each column for (int col {0}; col < ncols; ++col) { // Output the RGB values for each pixel cout << red << " " << green << " " << blue << "\n"; } } return EXIT_SUCCESS; }