The struct s_color stores the color values of ray tracing. It contains a field for red, green and blue values. If all components are 1, the final color is white. Otherwise, if all of them are 0, the resulting color is black. Therefore, each field has a range between 0 and 1. More...
#include <tuples.h>
Data Fields | |
double | red |
double | green |
double | blue |
The struct s_color stores the color values of ray tracing. It contains a field for red, green and blue values. If all components are 1, the final color is white. Otherwise, if all of them are 0, the resulting color is black. Therefore, each field has a range between 0 and 1.
red | Represents the red value of the RGB scale. |
green | Represents the green value of the RGB scale. |
blue | Represents the blue value of the RGB scale. |