/* ************************************************************************** */ /* LE - / */ /* / */ /* ft_drawsquare.c .:: .:/ . .:: */ /* +:+:+ +: +: +:+:+ */ /* By: rbousset +:+ +: +: +:+ */ /* #+# #+ #+ #+# */ /* Created: 2020/02/02 17:19:22 by rbousset #+# ## ## #+# */ /* Updated: 2020/02/02 17:19:22 by rbousset ### #+. /#+ ###.fr */ /* / */ /* / */ /* ************************************************************************** */ #include #include void ft_drawsquare(int a, int b, int rgb, t_cub *clist) { int x; int y; x = a; y = b; while (x > a - 40) { while (y > b - 40) { mlx_pixel_put(clist->wlist->wlx, clist->wlist->winptr, x, y, rgb); y--; } y = b; x--; } }