summaryrefslogtreecommitdiff
path: root/src/color.h
blob: 11516f030144f4e63357af453bd4e8e4ecbd203f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef COLOR_H
#define COLOR_H

typedef struct COLOR {
    unsigned char red;
    unsigned char green;
    unsigned char blue;
} COLOR;

static inline COLOR createColor(unsigned char red, unsigned char green, unsigned char blue) {
    // Create a color given values
    COLOR temp;
    temp.red = red;
    temp.green = green;
    temp.blue = blue;
    return temp;
}

#endif // COLOR_H