You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
429 B
30 lines
429 B
#ifndef RGBA_H
|
|
#define RGBA_H
|
|
|
|
typedef struct rgb {
|
|
double red;
|
|
double green;
|
|
double blue;
|
|
} rgb_t;
|
|
|
|
typedef struct rgb_str {
|
|
char red[3];
|
|
char green[3];
|
|
char blue[3];
|
|
} rgb_str_t;
|
|
|
|
typedef struct rgba {
|
|
double red;
|
|
double green;
|
|
double blue;
|
|
double alpha;
|
|
} rgba_t;
|
|
|
|
typedef struct rgba_str {
|
|
char red[3];
|
|
char green[3];
|
|
char blue[3];
|
|
char alpha[3];
|
|
} rgba_str_t;
|
|
|
|
#endif
|
|
|