Advertisement
leo11

Untitled

May 1st, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.75 KB | None | 0 0
  1.     switch (choice)
  2.     {
  3.     case 'b': //bylo red
  4.         for (size_t i = 0; i < file_info->height; i++){
  5.             for (size_t j = 0; j < file_info->widhth ; j++){
  6.                 pixels[i][j].red = num;
  7.             }
  8.         }
  9.         break;
  10.     case 'r': //bylo blue
  11.         for (size_t i = 0; i < file_info->height; i++){
  12.             for (size_t j = 0; j < file_info->widhth; j++){
  13.                 pixels[i][j].blue = num;
  14.             }
  15.         }
  16.         break;
  17.     case 'g':
  18.         for (size_t i = 0; i < file_info->height; i++){
  19.             for (size_t j = 0; j < file_info->widhth; j++){
  20.                 pixels[i][j].green = num;
  21.             }
  22.         }
  23.         break;
  24.     default:
  25.         puts("Try again!");
  26.         goto link11;
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement