This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "interpolateHex.h" | |
| #define interpolate(x, a, b) (((b)-(a))*(x)+(b)) | |
| #define clamp(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x)) | |
| #define UCHAR_MAX 255.0 | |
| typedef union { | |
| unsigned char byte[4]; | |
| unsigned int rgba; | |
| } color_t; |