summaryrefslogtreecommitdiff
path: root/include/blender/color.h
blob: cdf488adf42248c42a4424dc42d47d6c2786d396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef UPEM_MORPHING_COLOR
#define UPEM_MORPHING_COLOR

/**
 * File: color.h
 *
 * See also:
 *   A rainbow
 */

/**
 * Type: ColorComponent
 * Represents a single colour component of 32-bits RGBa tuple.
 */
typedef uint8_t ColorComponent;

/**
 * Type: ColorPixel
 * Represents a single RGBa coloured pixel.
 * Compatible with the libMLV representation.
 */
typedef union {
  ColorComponent r, g, b, a;
  MLV_Color mlv;
} Color;

#endif