Files
courses/2023_CS50X/memory/smiley/helpers.c
T
2024-11-14 13:11:04 +01:00

16 lines
387 B
C

#include "helpers.h"
void colorize(int height, int width, RGBTRIPLE image[height][width])
{
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
if (image[i][j].rgbtRed == 0x00 && image[i][j].rgbtGreen == 0x00 && image[i][j].rgbtBlue == 0x00)
{
image[i][j].rgbtBlue = 0xf0;
}
}
}
}