Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char*** out = new unsigned char**[255];
- out[0] = new unsigned char*[255*255];
- out[0][0] = new unsigned char[255 * 255 * 255];
- for (int i = 1; i < 255; i++) {
- out[i] = out[i - 1] + 255;
- //out[i][0] = out[i - 1][0] + 255 * 255;
- for (int j = 1; j < 255; j++) {
- out[i][j] = out[i][j - 1] + 255;
- }
- }
- char c = 1;
- for (int r = 0; r < 255; r++) {
- for (int g = 0; g < 255; g++) {
- for (int b = 0; b < 255; b++) {
- cout << r << " | " << g << " | " << b << endl;
- out[r][g][b] = c++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement