12 lines
254 B
C
12 lines
254 B
C
|
#ifndef COLOR_H
|
||
|
#define COLOR_H
|
||
|
|
||
|
typedef struct Color {
|
||
|
// Values are in [0, 1], with 0 meaning no intensity.
|
||
|
double rgb[3];
|
||
|
// Values are in [0, 1], with 0 meaning fully transparent, 1 meaning fully opaque.
|
||
|
double alpha;
|
||
|
} Color;
|
||
|
|
||
|
#endif // COLOR_H
|