miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
s_checker Struct Reference

This structure encapsulates the function uv_checkers(). More...

#include <patterns.h>

Collaboration diagram for s_checker:

Data Fields

double width
 
double height
 
t_color color_a
 
t_color color_b
 

Detailed Description

This structure encapsulates the function uv_checkers().

Parameters
widthDescribes how many squares the pattern creates in u, that is, in the vertical axis.
heightDescribes how many squares the pattern creates in v, that is, in the horizontal axis.
color_aDescribes the first color of the square to be applied.
color_aDescribes the second color of the square to be applied.