32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: o_ :::::: ::: */
|
|
/* set_background.c :+: / :+::+: :+: */
|
|
/* +:+ > +:++:+ +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#++#++:++#++ */
|
|
/* +#+ +#+#+ +#++#+ +#+ \o/ */
|
|
/* Created: 2024/12/13 15:23:20 by whaffman #+#+# #+#+# #+# #+# | */
|
|
/* Updated: 2024/12/20 11:21:27 by whaffman ### ### ### ### / \ */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "fdf.h"
|
|
|
|
void fdf_set_background(mlx_image_t *img, int color)
|
|
{
|
|
int x;
|
|
int y;
|
|
|
|
y = 0;
|
|
while (y < (int) img->height)
|
|
{
|
|
x = 0;
|
|
while (x < (int) img->width)
|
|
{
|
|
mlx_put_pixel(img, x, y, color);
|
|
x++;
|
|
}
|
|
y++;
|
|
}
|
|
}
|